Skip to content
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

Application ID is not set #5035

Open
ammgws opened this issue Dec 12, 2022 · 1 comment
Open

Application ID is not set #5035

ammgws opened this issue Dec 12, 2022 · 1 comment
Assignees
Labels
💡 enhancement This issue describes an improvement, enhancement, or feature request for OpenShot OS:Linux Issues specific to the Linux operating system

Comments

@ammgws
Copy link

ammgws commented Dec 12, 2022

Describe the bug:
#3354 introduced setDesktopFile (

openshot-qt/src/launch.py

Lines 191 to 195 in 87c07f1

try:
# Qt 5.7+ only
app.setDesktopFile("org.openshot.OpenShot")
except AttributeError:
pass
) so that the application ID (such as app_id in Wayland) is set to "org.openshot.OpenShot" instead of "python3". However on my system this is never set despite Qt being >v5.7 as noted in the comment in the code.

Steps to reproduce the behavior:

  1. Run openshot-qt
  2. Check application ID (for sway Wayland compositor: swaymsg -t get_tree) and see that it is set to "python3"

Expected behavior:
Application ID is set to "org.openshot.OpenShot"

System Details:

  • OpenShot Version 3.0.0
  • Operating System / Distro: Arch Linux

Log Files:

NOTE: While debugging I modified the try-except with a print statement that you can see at the end of the logs:
image

>openshot-qt

Loaded modules from: /usr/lib/python3.10/site-packages/openshot_qt
INFO sentry: No sentry_sdk module detected (error reporting is disabled)
INFO app: ------------------------------------------------
INFO app: Mon Dec 12 13:59:53 2022
INFO app: Starting new session
INFO app: ------------------------------------------------
INFO app: OpenShot (version 3.0.0)
INFO app: ------------------------------------------------
INFO app: openshot-qt version: 3.0.0
INFO app: libopenshot version: 0.3.0
INFO app: platform: Linux-6.0.12-zen1-1-zen-x86_64-with-glibc2.36
INFO app: processor:
INFO app: machine: x86_64
INFO app: python version: 3.10.8
INFO app: qt5 version: 5.15.7
INFO app: pyqt5 version: 5.15.7
INFO project_data: Setting default profile to HD 720p 30 fps
INFO project_data: Apply default audio playback settings: 44100, 2 channels
INFO app: checking babl_ext_path: /usr/lib/python3.10/site-packages/openshot_qt/lib/babl-ext
Unable to setDesktopFile

@sc0nway sc0nway added 💡 enhancement This issue describes an improvement, enhancement, or feature request for OpenShot OS:Linux Issues specific to the Linux operating system labels Dec 23, 2022
@schauveau
Copy link

It appears that the method was renamed from setDesktopFile to setDesktopFileName

https://doc.qt.io/qtforpython-5/PySide2/QtGui/QGuiApplication.html#PySide2.QtGui.PySide2.QtGui.QGuiApplication.setDesktopFileName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement This issue describes an improvement, enhancement, or feature request for OpenShot OS:Linux Issues specific to the Linux operating system
Projects
None yet
Development

No branches or pull requests

4 participants