bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.2k stars 258 forks source link

Setting a Default Bottle for .exe Files in Bottles #3426

Open outusuke opened 2 months ago

outusuke commented 2 months ago

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 commented 1 month ago

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