#[SOLVED] How to make pinned desktop entry to AppImage not appear as separate item in Plasma taskbar?

71 messages · Page 1 of 1 (latest)

cedar thicket
#

I wish to use my AppImage and have a desktop entry to it:

[Desktop Entry]
Name=Name
Exec=/path/to/app.AppImage %U
Icon=/path/to/icon.png

But i am running in to a problem where if I pin the following desktop entry to the KDE Plasma Taskbar, and run it, it basically creates a new entry that is separate from the launcher, like so:

Taskbar before launching app:

[ Inactive-Pinned-Desktop-Entry ]

Taskbar after launching app:

[ Inactive-Pinned-Desktop-Entry ] [ Active-App-After-Launching ]

Same happens if i run the app from launcher, then pin it, quit the app, then later try to run it again by the pinned entry, i get error similar to this:

tmp/.mount_SomeApp/app-executable does not exist.

I understand that i cannot pin launched app, if it was ran by an AppImage, but is it possible to at least pin desktop entry to the appimage and have it NOT appear as separate app in KDE Plasma Taskbar, when the app is ran?

P.S. "Keep launchers separate" is NOT ticked.

neat fable
#

that is just how appimages work, no way around that

peak orchid
cedar thicket
#

sec, will google what that is and try. ❤️

peak orchid
#

Also to make sure are you a dev packaging your app as an appimage or
are you just an appimage user?

#

If the latter, just use appimagelauncher to generate a desktop entry that just works 80% of the time

cedar thicket
#

i plan to pack many apps to appimages myself

#

i found that i can use this to click on window to find out the WMClass:

qdbus org.kde.KWin /KWin queryWindowInfo | grep resourceClass
#

im trying to figure out how to actually use it

peak orchid
#

In gnome you can figure out the WMClass via looking glass

Which is an inspection-like tool you usually find in browsers, but for the gnome-shell and everything in it such as windows, pretty nifty

cedar thicket
#

cant seem to find out how to make it work..

peak orchid
#

Well did you figure out the WMClass?

cedar thicket
#

so, i found i can use this:

xprop WM_CLAS
#
$ xprop WM_CLASS
WM_CLASS(STRING) = "github desktop", "GitHub Desktop"
#

im trying to figure out how to use this inside the desktop file

#
WMClass=github desktop,GitHub Desktop

This doesnt work

#
WMClass=GitHub Desktop

This also doesnt

peak orchid
#

Have you refreshed desktop database and restarted the app?

#

After making that change

cedar thicket
#

i unpinned desktop item, attached, and ran again.

#

do i have to do more?

#

i meant

peak orchid
#

That's not how you refresh desktop database

cedar thicket
#
  1. close app
  2. update desktop entry
  3. pin to taskbar
  4. click on pinned to open app
peak orchid
#

Your app launcher does not consult desktop files directly, too slow, it uses a cached database for that

#

So once you make a change, you need to update the database

cedar thicket
#

sorry, but idk what that means. How do i "update desktop database" ?

peak orchid
cedar thicket
#

oh, that is literally a command.. 😄

#
update-desktop-database 
The databases in [/usr/share/plasma/applications, /home/edcordata/.local/share/flatpak/exports/share/applications, /var/lib/flatpak/exports/share/applications, /usr/local/share/applications, /usr/share/applications, /var/lib/snapd/desktop/applications] could not be updated.
#

not sure what this means, unfurtinately

peak orchid
#

and anyways
Mb
Also add StartupWMClass element to the desktop file

cedar thicket
#

like so:

StartupNotify=true
WMClass=github desktop
StartupWMClass=github desktop
#

?

peak orchid
#

Ye

cedar thicket
#

FUCK IT WORKED

#

OMFG

peak orchid
#

There we go

cedar thicket
#

I LOVE YOU ❤️ ❤️ ❤️

peak orchid
#

You're welcome
I'm a packager myself
Tho I just do aur and flatpaks

cedar thicket
#

well, flatpaks dont work for me, cos they break if u change hardware often, i cannot for the love of me figure out how to pack snaps, always errors 😄

#

my only success has been with appimages

#

i want all my apps to in versions i want them to be 😄

peak orchid
#

When you change hardware with flatpaks
flatpak update usually revolves things

cedar thicket
#

yeah, i have to update them again and again

#

its annoying

#

also, they install SOOOO slow

#

i have created a script that extracts all my apps as appimages and generates launchgers + symlinks to my home folders..

that way app configs are portable and dont clutter my home dir ❤️

#

this was the only issue i had, and u helped me ❤️

#

thank u so very much

#

i cannot express how much u made my day ❤️ now i can fully switch to linux... finely..

i've been in love/hate relationship for 2 years now, trying to switch away from windows..

#

sorry, i talk too much.. im just happy 😄 THANK YOU ❤️

peak orchid
cedar thicket
#

yeah, but ill keep appimages.. I find it more calming, cos i wanna be able to use my apps fully offline

#

I will make my own kde neon iso, where i add docker, so i can install my perfect linux fully offline ❤️

#

been my main goal..

peak orchid
#

That also applies to flatpaks since you can store a local repo of apps on a USB stick and also install apps to external storage

cedar thicket
#

no idea how to make custom iso's, but others are doing it so, im sure i can too

#

yeah, that wont work for me.. i often change hardware for testing purposes

#

on my main os

#

i never know what dependency i might need.. and i dont wanna store entire flatpak on usb lol 😄

#

or spend time opening each flatpak up to see how they are made..

#

rly, i super duper appreciate your help ❤️ you solved last issue i had

#

can i close this forum post myself to mark it as done?

#

Also, can i help u in any way?

peak orchid
#

... Solved

verbal bronzeBOT
#

#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you

cedar thicket
#

To sumarize:

Find class name with one of these commands (will have to select window):

qdbus org.kde.KWin /KWin queryWindowInfo | grep resourceClass

or

xprop WM_CLASS

or

lg

if value, for example, is:
WM_CLASS(STRING) = "github desktop", "GitHub Desktop"

Add value to desktop entry:

StartupNotify=true
StartupWMClass=github desktop
WMClass=github desktop

Then restart desktop database with command:

update-desktop-database
#

[SOLVED] How to make pinned desktop entry to AppImage not appear as separate item in Plasma taskbar?

peak orchid
#

Epic