Can't use gtk2 window style in VLC

When I try to use gtk2 window style in VLC it crashes with the following errors:

(vlc:8230): GLib-GObject-WARNING **: 18:30:34.788: cannot register existing type 'GdkDisplayManager'

(vlc:8230): GLib-CRITICAL **: 18:30:34.788: g_once_init_leave: assertion 'result != 0' failed

(vlc:8230): GLib-GObject-CRITICAL **: 18:30:34.788: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(vlc:8230): GLib-GObject-WARNING **: 18:30:34.789: invalid (NULL) pointer instance

(vlc:8230): GLib-GObject-CRITICAL **: 18:30:34.789: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(vlc:8230): GLib-GObject-WARNING **: 18:30:34.789: invalid (NULL) pointer instance

(vlc:8230): GLib-GObject-CRITICAL **: 18:30:34.789: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(vlc:8230): GLib-GObject-WARNING **: 18:30:34.790: cannot register existing type 'GdkDisplay'

(vlc:8230): GLib-CRITICAL **: 18:30:34.790: g_once_init_leave: assertion 'result != 0' failed

(vlc:8230): GLib-GObject-CRITICAL **: 18:30:34.790: g_type_register_static: assertion 'parent_type > 0' failed

(vlc:8230): GLib-CRITICAL **: 18:30:34.790: g_once_init_leave: assertion 'result != 0' failed

(vlc:8230): GLib-GObject-CRITICAL **: 18:30:34.790: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
zsh: segmentation fault (core dumped)  vlc

Any idea how to fix this? Using Manjaro Gnome 20.0.2

...you might have a look at this post.

I figured out the problem.

You need to install qt5ct and qt5-styleplugins

Then you need to edit ~/.profile and etc/environment

And then select options in QT5 Settings

The full explanation is here:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by