Qt: Difference between revisions

imported>Symphorien
explain how to launch qt apps from a systemd user service
imported>Samueldr
m qt5: fix <code>
Line 13: Line 13:


==== qt5 ====
==== qt5 ====
Qt5 seems (?) to look for plugins in the <code>PATH</code>. This will fail from a systemd user unit for example, because their path is nearly empty by default. As an example, here is a workaround to have </code>usbguard-applet</code> launched from a systemd user unit:
Qt5 seems (?) to look for plugins in the <code>PATH</code>. This will fail from a systemd user unit for example, because their path is nearly empty by default. As an example, here is a workaround to have <code>usbguard-applet</code> launched from a systemd user unit:
{{File|/etc/nixos/configuration.nix|nix|<nowiki>
{{File|/etc/nixos/configuration.nix|nix|<nowiki>
   systemd.user.services.usbguard-applet = {
   systemd.user.services.usbguard-applet = {