Lemmy LIETUVA
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@toast.ooo to Linux@programming.dev · 14 days ago

Fedora Rejects Proposal To Use systemd For Managing Per-User Environment Variables

www.phoronix.com

external-link
message-square
5
link
fedilink
1
external-link

Fedora Rejects Proposal To Use systemd For Managing Per-User Environment Variables

www.phoronix.com

cm0002@toast.ooo to Linux@programming.dev · 14 days ago
message-square
5
link
fedilink
alert-triangle
You must log in or # to comment.
  • lambalicious@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    14 days ago

    Fedora rejects something from systemd

    date: April 1

    source: Phoronix

    Yeah no, good try tho. Had me hopeful for 6 seconds.

    • Maki@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      0
      ·
      14 days ago

      Fedora Discourse thread (started on 1 March 2026) : https://discussion.fedoraproject.org/t/f45-change-proposal-use-systemd-for-managing-per-user-environment-variables-selfcontained/182885 Fedora devel-announce post (sent on 10 March 2026) : https://lists.fedoraproject.org/archives/list/devel-announce@lists.fedoraproject.org/message/VOMOY2CBIY25324AFD52UAZVPTQUOIRN/ Proposal on Fedora wiki (Created on 10 March 2026) : https://fedoraproject.org/wiki/Changes/UseSystemdForManagingPerUserEnvironmentVariables Proposal on Pagure (opened on 25 March 2026, rejected on 1 April 2026) : https://pagure.io/fesco/issue/3582

  • exu@feditown.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    14 days ago

    At the risk of being serious, there’s really no good way to set user environment variables. (It’s been a while since I last checked, so I might be wrong)

    PAM used to have an equivalent to their /etc/environment for users, but that was deprecated or maybe removed last I checked.

    Systemd user environment variables don’t apply in a shell context

    .bashrc only works if you use bash as login shell and I’m not sure if it applies everywhere. Sure, I can set stuff in the shell I use, but it feels weird to modify my shell in order to change global environment variables.

    • eleijeep@piefed.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      14 days ago

      It sounds like you’ve looked into this before, so I’ll ask you: what is the use-case for per-user environment variables that can’t be achieved trivially through ~/.bashrc or /etc/profile ?

      It sounds to me like the problem they want to solve is that there is some piece of information which needs to be present in the environment for every process that a user runs regardless of the context it was executed from (eg. $DBUS_SESSION_BUS_ADDRESS)?

      In which case it would surely be served better by being contained in a config file in a standard location where it can be read by every process that needs that info instead of the executing process having to know the information and pass it in the environment, for every possible caller and calling context.

    • LiveLM@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      14 days ago

      Yeah it’s such a mess. Last I tried I had to set my variable in like 3 different places and it still didn’t apply everywhere I expected it to.

Linux@programming.dev

linux@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@programming.dev

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

  • !linux_memes@programming.dev
  • !linuxphones@lemmy.ca
  • our Matrix group chat
  • !reactos@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 30 users / day
  • 153 users / week
  • 515 users / month
  • 565 users / 6 months
  • 0 local subscribers
  • 13.3K subscribers
  • 182 Posts
  • 1.14K Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • adr1an@programming.dev
  • dwraf_of_ignorance@programming.dev
  • BE: 0.19.17
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org