Skip to content
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

Open
ryanabx opened this issue Oct 27, 2024 · 5 comments
Open

Comments

@ryanabx
Copy link
Contributor

ryanabx commented Oct 27, 2024

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:

/etc/environment.d/
/run/environment.d/
/usr/lib/environment.d/

User-Specific Directory:

~/.config/environment.d/

I put an environment file in ~/.config/environment.d and it wasn't loaded by cosmic-session. kde's session loads it.

@ryanabx ryanabx changed the title ~/.config/environment.d conf files are not utilized in cosmic-session ~/.config/environment.d conf files are not loaded in cosmic-session Oct 27, 2024
@Drakulix
Copy link
Member

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?

@wiiznokes
Copy link

I ran is this issue for my applet cosmic-utils/clipboard-manager#82 (comment)

@ryanabx
Copy link
Contributor Author

ryanabx commented Oct 28, 2024

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?

Is this reproducible on Pop? If not it definitely could be a fedora only issue.

@Vixea
Copy link

Vixea commented Jan 2, 2025

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)

@Vixea
Copy link

Vixea commented Jan 7, 2025

A person working with/on serpentos has made a patch
serpent-os/recipes#507
They'll submit it eventually here but if your affected by it and want it working now just apply the patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants