Specifying the output file causes .ico and .settings to be ignored (BMX NG)

Started by Hezkore, April 21, 2019, 23:20:32

Previous topic - Next topic

Yellownakji

Quote from: Derron on April 25, 2019, 08:32:41
Firefox and other applications install some .png or .xpm files in your /usr/share/something - which is what the desktop will then automatically use.

This does not work for "portable applications" (stuff you do not install from a .deb file or so).


bye
Ron


Aha!  I see how this works, now.    'usr/share/applications', is icon folder and everything inside is a .desktop.   I wonder if it's possible to write a script that generates a .desktop into this directory, AFTER you run the application for the first time. hmm.


Derron

No need for a script.
/usr
means you can write into there when executing it as a "user". So your app could create such a file too - yet it should not mean to give the app an icon.

Still it is a bad habbit to do such "suspicious" things. You might consider auto-creating a myfile.desktop next to your file - but the path/icon URI in there seems to have to be an "absolute path" (tried relative ones and the icon was gone or the app was not able to start)

bye
Ron