dreemurrs-embedded / Pine64-Arch

:penguin: Arch Linux ARM for your PinePhone/Pro and PineTab/2
691 stars 105 forks source link

Run gio-querymodules after phosh installation #551

Closed Schmiddiii closed 1 year ago

Schmiddiii commented 1 year ago

As discussed recently in the Phosh Matrix group, one should run gio-querymodules on the directories /usr/lib/phosh/plugins/ and /usr/lib/phosh/plugins/prefs/ as a post-install hook. See also the corresponding postinstall hook for debian.

Steps to reproduce

Try to configure the phosh lockscreen plugins using phosh-mobile-settings, the corresponding windows will not open.

Expected behavior

One should be able to open the lockscreen plugin settings.

Actual behavior

The windows will not be shown and one can see the following issues in the output:

(phosh-mobile-settings:5586): GLib-GIO-WARNING **: 18:36:23.393: Tried to implement non-registered extension point phosh-lockscreen-widget-prefs

(phosh-mobile-settings:5586): GLib-GIO-WARNING **: 18:36:23.399: Tried to implement non-registered extension point phosh-lockscreen-widget-prefs

(phosh-mobile-settings:5586): ms-lockscreen-panel-CRITICAL **: 18:36:42.249: load_prefs_window: assertion 'ep' failed

(phosh-mobile-settings:5586): ms-lockscreen-panel-CRITICAL **: 18:36:42.249: open_plugin_prefs_activated: assertion 'prefs' failed

Manually running the following resolved the issue for me:

gio-querymodules /usr/lib/phosh/plugins/
gio-querymodules /usr/lib/phosh/plugins/prefs/

Something similar should probably be added in the post-install hooks of phosh similar to the debian hooks.