Is it possible to have X parse a per-user configuration file?

5,816

There are options in xorg.conf that it is dangerous to allow ordinary users to set. The X server doesn't know which options or option combinations are dangerous. Therefore there is no general ability for ordinary users to set arbitrary options, by design. Running xinput, xset, xkbcomp and so on from your ~/.xinitrc or other X session initalisation file is the natural way.

X.org (like XFree86 before it) provides a limited ability for users to choose between several configuration files that are preset by the system administrator. If you pass the -config argument to the server (e.g. startx -- -config foo) or set the XORGCONFIG environment variable, then the server looks for a configuration file called /etc/X11/$XORGCONFIG (no absolute paths or .. allowed).

Share:
5,816

Related videos on Youtube

amn
Author by

amn

Updated on September 18, 2022

Comments

  • amn
    amn almost 2 years

    I am thinking that many of the options that one has to write in the traditional system Xorg.conf file, have to do with user preferences and thus should not IMHO be set by system administrators. In particular touchpad settings. I currently have several xinput ... lines in my ~/.xinitrc to override defaults. I would like instead that X parses a configuration file of my choosing on startup, which I think would be a better way to set a lot of the per-user configuration. Is what I am asking possible?

  • Gilles 'SO- stop being evil'
    Gilles 'SO- stop being evil' over 12 years
    @amn As I wrote, no, there isn't, by design. There's nothing wrong with invoking 10 different binaries when you log in, that's the way it's supposed to work.