-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
~/.config/environment.d
conf files are not loaded in cosmic-session
#76
Comments
~/.config/environment.d
conf files are not utilized in cosmic-session~/.config/environment.d
conf files are not loaded in cosmic-session
I am pretty sure, that would be a configuration issue (though I would be very curious to know what KDE does different here exactly) as all cosmic-session is doing is launching a login-shell. Loading profile and environment should be handled by that? |
I ran is this issue for my applet cosmic-utils/clipboard-manager#82 (comment) |
Is this reproducible on Pop? If not it definitely could be a fedora only issue. |
Reproducable in serpent-os, its caused by a lack of explicitly getting environment variables it seems. (Both Gnome and KDE explicitly get the environment variables.. So looks to be expected behavior from distros) |
A person working with/on serpentos has made a patch |
Yes I created a quick and dirty patch there since we needed to propagate certain variable from the user manager into the session. If the patch looks reasonable as-is I can clean it up a bit for a PR but realistically I'm not sure I'll have time if more work is requested than that. For reference I largely adapted the code from plasma-workspace which does the same thing. Both Plasma and GNOME directly support importing the user environment from systemd in case the login manager doesn't support doing so before the session is started (I think only GDM does that currently). I didn't really spend any time tracking down the implementation for GNOME once I had plasma-workspace in front of me as a reference however. |
The patch looks fine on first glance. Please open a PR, I am pretty sure this could be merged quickly without much fuzz. |
Version:
cosmic-session-1.0.0~alpha.2^git20241016.c3a35f3-1.fc41.x86_64
systemd environment files can be set in these places:
System-Wide Directories:
User-Specific Directory:
I put an environment file in
~/.config/environment.d
and it wasn't loaded by cosmic-session. kde's session loads it.The text was updated successfully, but these errors were encountered: