Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

Setting a Default Bottle for .exe Files in Bottles

Open outusuke opened this issue 1 year ago • 1 comments

When clicking 'Open with Bottles,' the application prompts to select which bottles to run. I would prefer to simply click the .exe file and have it run a default bottle instead. Is there a way to achieve this?

outusuke avatar Jul 08 '24 00:07 outusuke

I made a workaround to archive this by creating a new .desktop with the following

[Desktop Entry] Name=Bottles default Comment=Run Windows software files directly Icon=com.usebottles.bottles Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=bottles-cli --file-forwarding com.usebottles.bottles run --bottle my-bottle --executable %f Terminal=false NoDisplay=true Type=Application Categories=Utility;GNOME;GTK; StartupNotify=true StartupWMClass=bottles MimeType=x-scheme-handler/bottles;application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;application/x-wine-extension-msp; Keywords=wine;windows; X-GNOME-UsesNotifications=true X-Flatpak=com.usebottles.bottles

I don't know if it's the best solution but it works

outusuke avatar Jul 11 '24 15:07 outusuke

This might be solvable if Bottles installed desktop files for each bottle, which is doable on recent versions of xdp with the DynamicLauncher portal.

orowith2os avatar Jan 18 '25 18:01 orowith2os

This issue has been automatically closed as part of a cleanup process to help the team manage issues more effectively.

If the problem still persists, feel free to comment and we will gladly reopen it.

github-actions[bot] avatar May 29 '25 23:05 github-actions[bot]