Score:1

Application in the Dock can't be added to favourites

tr flag

I've created .desktop file in ~/.local/share/applications for an application. Now I'm able to find it through Super key. But after executing the application, I can't pin it to the dock using right click -> Add to favorites. Any idea why?

heynnema avatar
ru flag
Edit your question and show us the content of your .desktop file.
Score:2
cn flag

An icon that you find using the Super key can be pinned by right-clicking on it in the Application overview.

An icon of a running application cannot be pinned if it does not have a matching . desktop launcher.

Try pinning the icon you find using Super. Then run the application. If now, you see a second icon in the dock (one that can not be pinned), then your will need to add a StartupWMClass= line to indicate the actual WMClass of the application.

To determine the WMClass of your running application, use the tool xprop. If you are running standard Ubuntu on Wayland, you can determine the WMClass in the "Looking Glass, "Windows" tab. Open the looking glass by typing lg in the Alt+F2 dialog.

TondaCZE avatar
tr flag
So actually it works. Super key -> search -> right click -> Add to favorites is there and it works. What I was doing before (and it worked with other apps) is Super key -> search -> run the app. Then in the dock, right click on the running application and select 'Add to favorites'. Here the option is missing, if it hasn't been previously added from the 'Super key screen'. So I see there is some inconsistency in Ubuntu here. But anyway, I got what I needed. thanks.
TondaCZE avatar
tr flag
Also I found another inconsistency, it's not the same. Normally when I run an application from the dock, a dot appears next to the icon. In this case, when I click the docked app, a new icon with a dot is created and the previous still stays there without a dot.
vanadium avatar
cn flag
I know. Read my answer.
TondaCZE avatar
tr flag
Sorry, I managed to displace that part. Thanks.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.