Open source does not work with x11 forwarding

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
saperlot
New User
Posts: 2
Joined: Mon Mar 18, 2024 5:51 pm

Open source does not work with x11 forwarding

Post by saperlot »

Description of problem or question:
I'm trying to run Handbrake on my linux server remotely over X11 forwarding.
The app starts prety well and fast, different Dialogs works as expected but just "Open Source" won't show the selector screen.
It just does not do anything.

Steps to reproduce the problem (If Applicable):
ssh user@ip -X
flatpak install flathub fr.handbrake.ghb
flatpak run --share=network fr.handbrake.ghb &

HandBrake version (e.g., 1.0.0):
1.7.3 X86_64

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Host: Debian Bookworm (headless)


HandBrake Activity Log

Code: Select all

[21:10:42] Compile-time hardening features are enabled
Cannot load libnvidia-encode.so.1
[21:10:42] qsv: not available on this system
[21:10:42] hb_init: starting libhb thread
[21:10:42] hb_init: starting libhb thread
[21:10:42] hb_init: starting libhb thread

(fr.handbrake.ghb:2): GLib-CRITICAL **: 21:10:43.196: g_variant_get_type: assertion 'value != NULL' failed

(fr.handbrake.ghb:2): GLib-CRITICAL **: 21:10:43.197: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed

(fr.handbrake.ghb:2): GLib-CRITICAL **: 21:10:43.197: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed

(fr.handbrake.ghb:2): GLib-CRITICAL **: 21:10:43.197: g_variant_unref: assertion 'value != NULL' failed
User avatar
JohnAStebbins
HandBrake Team
Posts: 5738
Joined: Sat Feb 09, 2008 7:21 pm

Re: Open source does not work with x11 forwarding

Post by JohnAStebbins »

I just tried something similar with waypipe, i.e. from the client

Code: Select all

waypipe -c zstd=19 ssh server flatpak run fr.handbrake.ghb
This results in this message on the client

Code: Select all

(fr.handbrake.ghb:2): Gdk-WARNING **: 14:17:10.000: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
So, it's unable to initialize the desktop portal which is what is used for the "Open Source" dialog box. I'm guessing the X11 forwarding issue is the same problem minus the helpful error message.

Unfortunately, I don't know how to solve this while using the flatpak. It works if not using the flatpak. I.e.

Code: Select all

waypipe -c zstd=19 ssh server ghb
But you would have to build handbrake from source since we only distribute the linux version in flatpak.
Quasi72
Posts: 27
Joined: Mon Feb 13, 2023 5:11 pm

Re: Open source does not work with x11 forwarding

Post by Quasi72 »

Hi Saperlot,

No idea how to fix the X11 problem but i'm using a handbrake docker on kubuntu 22.04, this way the entire ghb gui is available from your favorite browser (http, so unsecured).
If security is an issue you can ssh tunnel the port it lives on...
saperlot
New User
Posts: 2
Joined: Mon Mar 18, 2024 5:51 pm

Re: Open source does not work with x11 forwarding

Post by saperlot »

Thank you guys for your answers
Post Reply