As an experiment I forked the old KGtk software, stripped out kdialogd and replaced it with calls to libportal. This makes it desktop agnostic and allows GTK2 apps to use portals. It also contains fixes that can be backported to Trinity's KGtk-qt3. It's still far from stable however so I wouldn't recommend installing it outside of testing purposes.
https://github.com/rjb330/portal-wrapper/
Attached screenshot shows portal-wrapper opening files in GIMP with the new xdg-desktop-portal-tde prototype.
------------------------------------------------- This free account was provided by VFEmail.net - report spam to abuse@vfemail.net
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!
On 2024/09/28 08:15 AM, Riley Bell via tde-users wrote:
As an experiment I forked the old KGtk software, stripped out kdialogd and replaced it with calls to libportal. This makes it desktop agnostic and allows GTK2 apps to use portals. It also contains fixes that can be backported to Trinity's KGtk-qt3. It's still far from stable however so I wouldn't recommend installing it outside of testing purposes.
https://github.com/rjb330/portal-wrapper/
Attached screenshot shows portal-wrapper opening files in GIMP with the new xdg-desktop-portal-tde prototype.
Hi Riley,
it looks really nice :-) Good job! One more reason to make sure we add xdg-desktop-portal-tde for R14.1.4 (too late for R14.1.3 probably).
Cheers Michele
Thanks, Michele.
I'll also take a look at xdg-desktop-portal-tde itself. It's very interesting that KDE was basically doing desktop portals before it was a thing.
On Friday 27 September 2024 4:15:23 pm Riley Bell via tde-users wrote:
As an experiment I forked the old KGtk software, stripped out kdialogd and replaced it with calls to libportal. This makes it desktop agnostic and allows GTK2 apps to use portals. It also contains fixes that can be backported to Trinity's KGtk-qt3. It's still far from stable however so I wouldn't recommend installing it outside of testing purposes.
https://github.com/rjb330/portal-wrapper/
Attached screenshot shows portal-wrapper opening files in GIMP with the new xdg-desktop-portal-tde prototype.
This free account was provided by VFEmail.net - report spam to abuse@vfemail.net
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!
------------------------------------------------- This free account was provided by VFEmail.net - report spam to abuse@vfemail.net
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!
Hi,
First of all, thank you for the fork. While Gtk+3 apps can be forced to use xdg desktop portals with the help of an environment variable, AFAICT there is just no way for Gtk+2 apps. It would be a nice complement for xdg-desktop-portal-tde.
I've tried to get it working, but unfortunately I have had no success so far: starting any Gtk2 process fails, with that process just taking up 100% of a CPU core without a visible window (didn't test with Gtk3). Maybe I'm missing something, who knows.
Stdout (from GIMP 2.10.34 startup): ``` GTK Portal::dlsym : (0xffffffffffffffff) g_type_register_static_simple GTK Portal::real_dlsym : g_type_register_static_simple GTK Portal::dlsym found? 1 ``` Also the wrapper does not detect the toolkit used by PaleMoon as it checks the executable itself for linking data. In PaleMoon the gtk2 linking can be seen in libxul.so. Directly calling gtk2-portal-wrapper also results in the bug I mentioned above.
I'll be taking a closer look later in case I find a solution. I'd like to get this working.
-- Philippe
I appreciate the feedback. With Palemoon I have to call it with gtk2-portal-wrapper directly too, but I'll see if I can make the script check libxul.so if the exe is palemoon(-bin).
I don't know what can be causing the hangup in your case, it looks like it happens right after the first dlsym call (with debugging enabled GIMP spams stdout with all kinds of calls during startup).
I'll push a commit later tonight as I've been doing some work toward fixing Gtk+3 and fixed some things in Gtk+2.
On Wednesday 02 October 2024 12:30:43 pm Philippe Mavridis via tde-users wrote:
Hi,
First of all, thank you for the fork. While Gtk+3 apps can be forced to use xdg desktop portals with the help of an environment variable, AFAICT there is just no way for Gtk+2 apps. It would be a nice complement for xdg-desktop-portal-tde.
I've tried to get it working, but unfortunately I have had no success so far: starting any Gtk2 process fails, with that process just taking up 100% of a CPU core without a visible window (didn't test with Gtk3). Maybe I'm missing something, who knows.
Stdout (from GIMP 2.10.34 startup):
GTK Portal::dlsym : (0xffffffffffffffff) g_type_register_static_simple GTK Portal::real_dlsym : g_type_register_static_simple GTK Portal::dlsym found? 1
Also the wrapper does not detect the toolkit used by PaleMoon as it checks the executable itself for linking data. In PaleMoon the gtk2 linking can be seen in libxul.so. Directly calling gtk2-portal-wrapper also results in the bug I mentioned above.
I'll be taking a closer look later in case I find a solution. I'd like to get this working.
-- Philippe ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskt op.org
------------------------------------------------- This free account was provided by VFEmail.net - report spam to abuse@vfemail.net
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!