PROBLEM
Hi, I'm trying to make a .desktop entry for jetbrains toolbox (a program), because for some reason, the desktop entry they included isn't showing the icon on my system (popOS 22.04, a Ubuntu fork).
Here are the file contents in ~/.local/share/applications/jetbrains-toolbox.desktop, and it's permissions are -rwxrw-r--.
I also know using apostrophes in file paths in generally bad. It's an old file path, I have references to it elsewhere, and I don't care to change it because it's working fine.
[Desktop Entry] Icon=/home/me/OS's and other progs/Jetbrains - PyCharm, etc/jetbrains-toolbox-2.8.0.51430/bin/toolbox.svg Exec=/home/me/OS's and other progs/Jetbrains - PyCharm, etc/jetbrains-toolbox-2.8.0.51430/bin/jetbrains-toolbox %u Version=1.0 Type=Application Categories=Development Name=JetBrains Toolbox StartupWMClass=jetbrains-toolbox Terminal=false MimeType=x-scheme-handler/jetbrains; X-GNOME-Autostart-enabled=true StartupNotify=false X-GNOME-Autostart-Delay=10 X-MATE-Autostart-Delay=10 X-KDE-autostart-after=panel WHAT I TRIED
The only way I can get the icon to show is by adding double quotes to the Exec entry. Like so:
Exec="/home/me/OS's and other progs/Jetbrains - PyCharm, etc/jetbrains-toolbox-2.8.0.51430/bin/jetbrains-toolbox" %u But the problem is that once I do that > Click the icon to open it > do my stuff > close it again... For some reason it rewrites the file and deletes the double quotes from the Exec entry, and then I have to do it all over again, or run the program directly from the terminal via ~/path/to/jetbrains-toolbox, which gets annoying.
I also read the docs for desktop entry keys, and for the Exec variables like %u, and a number of other guides on this site and off, like this one, and this one too.
I also made some other test desktop entries with the same code above but with no double quotes, but using my own and the same toolbox.svg image in other folders for the Icon entry, but with a different Exec entry such as /usr/bin/gedit, and it opened gedit every time. So the problem is obviously the Exec line, but my double quotes keep getting overwritten.
I even chmod 777 jetbrains-toolbox.desktop, and even that wouldn't work.
I also asked Jetbrains about this like a week ago. No response yet.
And nothing I tried is fixing the problem.
QUESTION
What can I do to stop it from overriding my double quotes, or do you have a better idea on making the program run without me having to do the above stuff again and again??