• Varyag@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    14 hours ago

    I was trying to figure this out until like 3AM last night. How do I set environment variables to be loaded into my X session when XFCE loads? I’m on Arch btw. I want to set DRI_PRIME=1 so that applications started from the launcher actually use the discrete graphics card by default. Right now it only works like that if I launch from the terminal.

    I tried multiple potential config files to put it at, and the one time it actually worked, I lost my window manager… The other times, the desktop environment didnt even load or start the session. Undid everything and decided to come back later.

    • sin_free_for_00_days
      link
      fedilink
      arrow-up
      1
      ·
      13 hours ago

      I’m kind of out of date with modern Linux stuff, but can’t you throw that in the .xsessionsrc or .xinitrc file?

      • Varyag@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        I tried certain iterations of those, and the usual result is that my session fails to initiate. I’m probably doing that wrong.