StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Option to control the NoDisplay option in stabilitymatrix.desktop file in linux

Open matplinta opened this issue 11 months ago • 2 comments

Proposal

I installed the app via appimage in linux, as a portable package. I see that the desktop file ~/.local/share/applications/stabilitymatrix.desktop was created for the package.

Name=StabilityMatrix
Exec=/home/mateusz/Documents/StabilityMatrix.AppImage %u
Type=Application
NoDisplay=true
Categories=Utility
X-Desktop-File-Install-Version=0.28
MimeType=x-scheme-handler/stabilitymatrix;x-scheme-handler/stabilitymatrix

Since NoDisplay is set to true (I'm assuming this is set because of the portability of the package) I am unable to find the app in application launcher (my desktop env is KDE). Simply setting the option to false fixes the issue, however upon next launch of the app this setting is overwritten. My proposal is to add an option to control this setting.

matplinta avatar Jan 06 '25 12:01 matplinta

I've found that if it's changd at all (even if I change it to read only) the file is deleted and replaced with the above .desktop file. Im currently trying to find a workaround.

Edit (workaround):Thought of and figured out a workaround as I was typing that. It works. Simply rename the .desktop file to something else. The SM will still create its own .desktop file but it wont replace one thats named differently. Sadly this means that the active icon while the app is running will be separate from the launch icon but this still gets you a permanent pinned icon.

silverbot01 avatar Jul 24 '25 08:07 silverbot01

Was looking to ask why the file gets deleted and recreated each time, and found this issue... didn't think about adding a new file with a different name, so thanks for that tip :-)

My desktop file is below, may not be the best keywords and comment, as I am still figuring out what the app does, but it works for me...

The reason I have included it below is that the last line groups the launch icon and the running icon, at least in gnome.

[Desktop Entry]
Name=StabilityMatrix
Exec=/opt/StabilityMatrix-linux-x64/StabilityMatrix.AppImage %u
Type=Application
Icon=/opt/StabilityMatrix-linux-x64/StabilityMatrixIcon.png
Categories=Utility
X-Desktop-File-Install-Version=0.28
MimeType=x-scheme-handler/stabilitymatrix;x-scheme-handler/stabilitymatrix
Comment=Config tool for AI image generation, including Stable Diffusion and ComfyUI 
Keywords="Stable Diffusion",ComfyUI
StartupWMClass=StabilityMatrix.Avalonia

cfnz avatar Oct 17 '25 23:10 cfnz