-
Notifications
You must be signed in to change notification settings - Fork 38
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
Can't open kdevelop open project dialog when using qgnomeplatform #102
Comments
Do you have xdg-desktop-portal and xdg-desktop-portal-gtk (or -gnome) installed? Can you show me output from |
Though it's a little bit weird setup, I don't have xdg-desktop-portal-gtk, but xdg-desktop-portal-kde. But some other app like kwrite open file dialog works fine. I can see tons of repeated log flushing, some sample like this:
I noticed that xdg-desktop-portal-kde seems to crash with infinite recursion (it tries to launch portal via qgnomeplatform and cause recursion ). I wonder if it's possible add a blocklist in qgnomeplatform to forcibly not using portal for the portal program itself? |
That is indeed a weird setup. This happens because you open a dialog using QGnomePlatform, which will use xdg-desktop-portal when possible in order to get native GTK dialogs, but because it goes to xdg-desktop-portal-kde and tries to open a native dialog from there and you have QGnomePlatform loaded, it again calls xdg-desktop-portal and over and over. Unfortunately I have no idea how to break this cycle. I will try to think about it. |
I guess one way is to check whether current process is kde portal by checking value of QCoreApplication::applicationName (or some other similar way). If detected, fallback to a non-portal code path. |
Good idea. I will try that. |
System: Archlinux
Version: 0.8.4
KDevelop: 22.04
Try to launch open project dialog in kdevelop, but the UI just freeze and no dialog is displayed.
Same action works fine when not having qgnomeplatform-qt5 package installed.
The text was updated successfully, but these errors were encountered: