diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-06-18 08:35:59 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-06-18 08:48:10 +0200 |
commit | 762058e433ad14f8aad147485bf0baaff908bcb7 (patch) | |
tree | 7a83a8c9fc66be65508ff16be0e46347fed849c8 /src/arctica-greeter.vala | |
parent | f77de32b2d950faee5d19d7b2f37ee9eb5fff7e9 (diff) | |
download | arctica-greeter-762058e433ad14f8aad147485bf0baaff908bcb7.tar.gz arctica-greeter-762058e433ad14f8aad147485bf0baaff908bcb7.tar.bz2 arctica-greeter-762058e433ad14f8aad147485bf0baaff908bcb7.zip |
src/: Move all env variable settings before the cmdline option parse() method to actually have an effect.
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r-- | src/arctica-greeter.vala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index 76ffc65..7ba055c 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -1178,6 +1178,28 @@ public class ArcticaGreeter : Object /* Make nm-applet hide items the user does not have permissions to interact with */ Environment.set_variable ("NM_APPLET_HIDE_POLICY_ITEMS", "1", true); + /* Set indicators to run with reduced functionality */ + AGUtils.greeter_set_env ("INDICATOR_GREETER_MODE", "1"); + + /* Don't allow virtual file systems? */ + AGUtils.greeter_set_env ("GIO_USE_VFS", "local"); + AGUtils.greeter_set_env ("GVFS_DISABLE_FUSE", "1"); + + /* Hint to have onboard running in greeter mode */ + AGUtils.greeter_set_env ("RUNNING_UNDER_GDM", "1"); + + /* Let indicators know about our unique dbus name */ + try + { + var conn = Bus.get_sync (BusType.SESSION); + AGUtils.greeter_set_env ("ARCTICA_GREETER_DBUS_NAME", conn.get_unique_name ()); + } + catch (IOError e) + { + debug ("Could not set DBUS_NAME: %s", e.message); + } + + bool do_show_version = false; bool do_test_mode = false; bool do_test_highcontrast = false; @@ -1207,6 +1229,7 @@ public class ArcticaGreeter : Object * GLib.Environment.set_variable() calls won't take effect (for * whatever unknown reason...) if they get issued after the c.parse() * method call on our OptionContext object (see a few lines below). + * Same applies to AGUtils.set_greeter_env(). * * To mitigate this (strange) behaviour, make sure that all env * variable setups in main() are located above this comment. |