cosmic-session/data
Pratham Patel c22dcdfe06 use dbus-update-activation-environment to update/initialize
environment variables

The goal is to update the environment variables for the user's systemd
session **and** the services listening on user's d-bus session.

Until now, the variables were updated using the `import-environment`
environment command of `systemctl`. But, it would only be executed if
systemd was present on the host system. Leaving the variables on the
d-bus side either uninitialized or with incorrect values.

Therefore, instead of using `systemctl`, use the
`dbus-update-activation-environment` command to initialize/update the
environment variables for user's d-bus session but also for user's
systemd session. This is done by passing the `--systemd` option.

When systemd is not detected, the command doesn't fail, it simply
doesn't update the variables for user's systemd session. And since a
systemd user session doesn't exist, no harm no foul.
2025-06-03 03:00:25 +02:00
..
dconf/profile fix: steam fails when dconf profile lacks ending newline 2025-01-10 15:28:23 +01:00
cosmic-mimeapps.list Switch media handler to COSMIC Player 2025-01-02 09:34:01 -07:00
cosmic-session.target Fix cosmic-session target 2024-06-24 09:43:26 -06:00
cosmic.desktop chore(nix): update nix flake 2023-12-22 16:34:47 +01:00
start-cosmic use dbus-update-activation-environment to update/initialize 2025-06-03 03:00:25 +02:00