ArcticaProject / arctica-greeter

Arctica Greeter: Greeter Frontend for LightDM
GNU General Public License v3.0
27 stars 8 forks source link

GLib.Environment.set_variable() has no effect after GLib.OptionContext.parse() #88

Open Ionic opened 12 months ago

Ionic commented 12 months ago

From #83:

While working on font-scaling support and fixing HiDPI support, I discovered, that GLib.Environment.set_variable() does not take effect after OptionContext.parse() has been called. (For whatever unknown reason...).

To mitigate this, let's move all env variable setups to the code portion above the c.parse() call.

While the PR works around the issue for the NM applet, code in src/menubar.vala still sets a set of environment variables and is certainly created after the program arguments have been processed.

While the environment variable changes might not be that critical any longer since we stopped spawning indicators via systemd and switched to spawning them as subprocesses of the greeter, and the dbus activation environment may likewise not be needed any longer, they probably still need data such as the unique dbus name.

This is probably something that should be dbused debugged and fixed in the long run.