Commit graph

34 commits

Author SHA1 Message Date
Thomas Wouters
7b5fd4de9d
fix: environment variables with spaces 2026-02-03 16:37:32 +01:00
Levi Portenier
77a284009c
Merge pull request #180 from thefossguy/start-cosmic-handle-env-init
start-cosmic: update values of existing env vars
2026-01-27 16:53:52 -07:00
Pratham Patel
32f43be573
start-cosmic: set SSH_AUTH_SOCK only if the correct value can be determined 2026-01-20 23:08:57 +05:30
Pratham Patel
de27085e49
start-cosmic: update values of existing env vars
I could not find any consistent documentation on _which_ environment
variables a DE should populate. GNOME just imports everything[0] from
the current DE-startup-session. KDE imports some DE and KDE specific
variables but again, this isn't defined anywhere (that I could find)
on places like <freedesktop.org>. So instead, lets just update
existing ones.
[0]: d14f6db15e
2026-01-15 01:04:05 +05:30
DeiAsPie
ec64522110
fix: add SSH_AUTH_SOCK to systemd import-environment
Move the systemctl import-environment call after keyring setup so the
SSH_AUTH_SOCK variable exists before being imported into the user
service manager. Remove the earlier duplicate import block.
2026-01-06 01:56:44 +01:00
Ashley Wulber
379ce30715 cleanup: logs 2025-09-19 11:26:54 -06:00
Aaron Honeycutt
2441be2ad0
fix: avoid hardcoding keyring daemon path for distros like NixOS 2025-09-05 21:35:34 +02:00
ligenix
4598b7cdf4
fix: start gnome-keyring before cosmic-session & export SSH_AUTH_SOCK 2025-08-29 16:44:53 +02:00
Sebastian Jung
4c72d42731
fix: start gnome-keyring components if the daemon is active 2025-08-20 20:03:55 +02:00
Michael Aaron Murphy
f187e8d767
Revert "use dbus-update-activation-environment to update/initialize"
This reverts commit c22dcdfe06.
2025-06-11 14:49:02 +02:00
Michael Aaron Murphy
77eee4602b
Revert "update $WAYLAND_DISPLAY and $DISPLAY post login"
This reverts commit dd4fa3daea.
2025-06-11 14:48:55 +02:00
Pratham Patel
dd4fa3daea update $WAYLAND_DISPLAY and $DISPLAY post login
The $WAYLAND_DISPLAY and $DISPLAY are prone to change between `greetd`'s
initialization and the user's login. Therefore, update these environment
variables so systemd services and/or d-bus services use the correct
values post login.
2025-06-03 03:00:25 +02:00
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
Victoria Brekenfeld
6df4561c19 start-cosmic: Import DCONF_PROFILE into systemd user environment 2025-02-27 20:04:08 +01:00
Michael Aaron Murphy
fa327adf1f
remove ELECTRON_OZONE env due to flatpaks not having wayland sockets enabled 2025-02-18 02:24:45 +01:00
Michael Aaron Murphy
fae8ac6a9f
fix: set OZONE default to auto 2025-02-17 20:11:52 +01:00
Michael Aaron Murphy
8020134a9f
set ELECTRON_OZONE_PLATFORM_HINT to wayland 2025-02-15 00:48:36 +01:00
Ryan Brue
6650b910b5 fix: don't set XCURSOR_THEME in start-cosmic
Setting XCURSOR_THEME messes up custom cursor theme overrides, so let's set the Cosmic cursor theme another way in distros and such

Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
2024-12-31 17:02:49 +01:00
Victoria Brekenfeld
87a0644435 session: Add custom dconf profile
This causes the cosmic-session to have a separate
writable dconf-database (while still inheriting
the default user database).

This will (partially) prevent issues such as
https://github.com/pop-os/cosmic-epoch/issues/1174
in the future, as other desktops won't pick up
cosmic's dconf profile.
2024-12-04 16:51:50 +01:00
Victoria Brekenfeld
39c7f93800 start-cosmic: Set QT auto scaling env variables
This makes sure together with our XSettings implementation in cosmic-comp,
that QT apps running on their xcb backend will react to the DPI values
we are setting by changing their internal scaling.
2024-09-02 20:04:56 +02:00
Ryan Brue
5613bc6606 fix: set cursor theme to COSMIC 2024-05-03 23:45:11 +02:00
Victoria Brekenfeld
e05814291c
Merge pull request #30 from jokeyrhyme/23-use-preferred-shell
fix: use preferred SHELL in login shell mode
2024-01-09 13:49:43 +01:00
Ron Waldon-Howe
bc87ac9918 fix: check before using systemctl 2024-01-09 15:50:00 +11:00
Ron Waldon-Howe
9f256004e7 fix: use preferred SHELL in login shell mode 2024-01-09 15:33:33 +11:00
Ashley Wulber
93ee7861e4
chore(nix): update nix flake 2023-12-22 16:34:47 +01:00
Victoria Brekenfeld
5de89ffb81
Update start-cosmic 2023-12-19 21:50:47 +01:00
Victoria Brekenfeld
ba52fc1be4
Allow xcb QT_QPA_PLATFORM as a fallback 2023-12-19 20:41:44 +01:00
Jeremy Soller
1ff63fbea3
Force QT apps to run with wayland 2023-10-11 10:17:04 -06:00
Ashley Wulber
8d8ac26d7b
refactor: X is supported by Cosmic 2023-01-25 11:07:56 -05:00
Ashley Wulber
9a9861f8e3
feat: additions for optional experimental X support via wayland-proxy-virtwl 2022-10-24 14:03:45 -04:00
Jeremy Soller
667b5e6c19 Only require profile to be a file 2022-09-23 13:15:08 -06:00
Jeremy Soller
91debd1729 Source user profile 2022-09-23 13:15:08 -06:00
Lucy
b33efc83df
🩹 Don't nest user dbus sessions 2022-07-13 12:04:48 -04:00
Lucy
bc07650f01
Add start-cosmic script; cosmic-session.target 2022-07-12 11:55:53 -04:00