dangvd / crystal-dock

A cool dock (desktop panel) for Linux desktop
GNU General Public License v3.0
54 stars 8 forks source link

Some Applications Cannot be Pinned #13

Closed Catoverflow closed 3 months ago

Catoverflow commented 9 months ago

Some applications do show up in task manager but don't have the pin checkbox: image google-chrome here is launched via.desktop file in .local/share/applications To compare: image There's a pin checkbox for kate and others

dangvd commented 9 months ago

Hi,

If the dock can't find an app on the Application Menu list, then it can't offer the option to pin/unpin it.

The reason it can't find an app on the Application Menu sometimes even when it's there, is because: on the App Menu, the command could be, for example: 'run-app-script.sh', but when it's running, the command of the task reported could be '/usr/bin/app', and so it can't match the two.

What is the command for Google Chrome in your App Menu?

Thanks,

Catoverflow commented 8 months ago

Yes. The exec chain is ~/.local/share/applications/google-chrome.desktop -> /usr/bin/google-chrome-stable -> /opt/google/chrome/google-chrome

I digged a little bit more, please correct me if I'm wrong: Program matching is interesting as the running application should be "aligned" to .desktop launchers. Before I switched to crystal dock I used latte dock and didn't notice the problem in it. Latte-dock's match function seems to be here. I'm not familiar with Qt applications coding but this may be a reference?

dangvd commented 8 months ago

In Crystal Dock the App Menu entry is the .desktop file so yeah Crystal Dock does the matching by comparing the command of the running application with the command field of the .desktop file.

Thanks, I will look more into the link you shared.

dangvd commented 3 months ago

Should work better now with Crystal Dock v2.0 on Wayland. Please re-open if it's still an issue. Thanks,

Catoverflow commented 3 months ago

Thanks! I tried with Firefox executed from shell script it worked.

dangvd commented 3 months ago

Good to hear that!