Skip to content

Environment variables not updated after switching users via su user #8320

@DaGhostman

Description

@DaGhostman

I started using 2 separate accounts on my PC 1 personal and another for work and since I was switching from kitty, where if I do su user2 (UID: 1001) from user1 (UID 1000) session it updated the env variables to point to the values applicable for user2, which is the behaviour that seems logical imho, in Alacritty, however, that is not the case. When executing programs such as zellij I get permissions denied error, because for user1 the XDG_RUNTIME_DIR points to /var/run/1001 instead of the /var/run/1000, on which zellij depends on for session storage.

Thanks and do let me know if you need any further information or any other way I could help with

System

OS: Linux (Fedora 41)
Version: alacritty 0.14.0
Linux Wayland, Hyprland + GDM

Logs

Crashes: N/A, alacritty doesn't crash, just applications that rely on particular env variables do

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions