bottlesdevs / Bottles

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

[Feature Request/BUG] Improve the .desktop launcher files #2810

Open SamPurple22 opened 1 year ago

SamPurple22 commented 1 year ago

Hi Bottles devs,

As discussed in bottlesdevs/programs#211, opening issue separately:

The "Add Desktop Entry", creates the .desktop file in $HOME/.local/share/applications/, but why the weird name "StarCitizen--Star\ Citizen--1678226111.064794.desktop" ?

It has an invalid icon file:

grep Icon .local/share/applications/StarCitizen--Star\ Citizen--1678226111.064794.desktop
Icon=/home/user1/.var/app/com.usebottles.bottles/data/bottles/bottles/StarCitizen/icons/Star Citizen.png

ls /home/user1/.var/app/com.usebottles.bottles/data/bottles/bottles/StarCitizen/icons
starcitizen.png '_Star Citizen.png.ico'

The Categories section inside the .desktop file should have Game for Gaming Bottle category (when you create a new bottle). Maybe this should be defined as parameter inside the Installer (so that the maintainer can define it better)?

RushingAlien commented 1 year ago

Hello! Sounds great, also would help if we added an exec entry to remove the desktop file, similar to what appimagekit does in its .desktop file generation, "remove desktop shortcut" in bottles' case gambar