-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The opened application should be recognised as a dangerzone by Fedora 38 with GNOME Desktop #402
Comments
Right, I can reproduce this locally, but I never managed to dig deeper. Our |
@apyrgio Is still present in version 0.4.2. |
Sigh, it most probably is, since we haven't found the time to work on it. It's one of these issues that are not bugs or new features, so they stay for a bit more in the back burner. I have tagged it as |
This issue will probably be a bit about finding the proper directory to install the desktop icon. Here's a section of a related discussion:
|
We are still bitten by this as @deeplow found out in our recent QA for 0.5.1 (#634 (comment)). Apologies, and I hope we can have a fix out in time. |
Currently, the app ID of the Dangerzone GUI application when running under Wayland is `python3`, which is not very useful if one wants to automate some action related to the Dangerzone application window (e.g. to always start Dangerzone window in floating mode under Sway WM). Setting the desktop filename property also sets the app ID of the application under Wayland. According to Qt documentation[1], the property value should be the name of the application's .desktop file but without the extension. Qt documentation also states: > This property gives a precise indication of what desktop entry > represents the application and it is needed by the windowing system to > retrieve such information without resorting to imprecise heuristics. Therefore I also think that setting this property is needed to display the correct application name and icon (taken from the .desktop entry) when running under certain windowing systems (like Wayland) (see also freedomofpress#402). [1]: https://doc.qt.io/qt-6/qguiapplication.html#desktopFileName-prop
I think we have a fix here, which I've verified it works in Fedora 39 (see #774). If we set in our application: self.setDesktopFileName("press.freedom.dangerzone")
self.setApplicationName("dangerzone") then the correct icon, application ID, and name, is reported as well. Depending on the OS, only the desktop file name may be needed, but we want to set both to leave no room for ambiguity. |
The fix has just been merged in |
Instead, python3 is displayed in various places (here Dock, Panel, Window Overview)
My wish would be that "dangerzone" is displayed together with the appropriate application icon.
The text was updated successfully, but these errors were encountered: