lxqt / screengrab

Crossplatform tool for fast making screenshots.
https://lxqt.github.io
GNU General Public License v2.0
71 stars 45 forks source link

Call setDesktopFileName(...) to set proper app-id on wayland #367

Open marcusbritanicus opened 2 months ago

marcusbritanicus commented 2 months ago

This PR fixes the app-id of this application.

Currently, the application name (screengrab) and organisation domain (https://lxqt.org) are set. Since desktopFileName is not set, Qt in a misguided attempt inverts the org-domain (giving us org.https://lxqt) and then appends the application name, to give us an app-id, resulting in this beautiful expression: org.https://lxqt.screengrab

This fix for this is simple: just call QApplication::setDesktopFileName(...).

stefonarch commented 2 months ago

Unfortunately it has no effect still:

immagine

$ lswt
app-id:                           title:
org.https://lxqt.screengrab       ScreenGrab
stefonarch commented 2 months ago

Forgot about screengrab always minimized to tray, long time ago I used it. GTM