Executing a command in every x-session

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
How can I execute an arbitrary command for every x-session (belonging to any
user)?
(At any time, not just on login.)
xorg
add a comment |Â
up vote
0
down vote
favorite
How can I execute an arbitrary command for every x-session (belonging to any
user)?
(At any time, not just on login.)
xorg
1
My guess would be a script in/etc/X11/xinit/xinitrc.d/but I'm not 100% on this.
â arcsin
Mar 25 at 15:37
@arcsin You are correct! If you want to throw that in an answer you'd have my upvote. Scripts inxinitrc.dget run when an xsession is started. It's a perfect way to addxhostrules as an example (and is how the logged in user getsxhostrules allowing them to use theirxsessionnormally).
â Centimane
Mar 25 at 15:46
@arcsin, sorry, I meant at any time, not just on login.
â Toothrot
Mar 25 at 15:49
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
How can I execute an arbitrary command for every x-session (belonging to any
user)?
(At any time, not just on login.)
xorg
How can I execute an arbitrary command for every x-session (belonging to any
user)?
(At any time, not just on login.)
xorg
edited Mar 25 at 15:49
asked Mar 25 at 15:26
Toothrot
749416
749416
1
My guess would be a script in/etc/X11/xinit/xinitrc.d/but I'm not 100% on this.
â arcsin
Mar 25 at 15:37
@arcsin You are correct! If you want to throw that in an answer you'd have my upvote. Scripts inxinitrc.dget run when an xsession is started. It's a perfect way to addxhostrules as an example (and is how the logged in user getsxhostrules allowing them to use theirxsessionnormally).
â Centimane
Mar 25 at 15:46
@arcsin, sorry, I meant at any time, not just on login.
â Toothrot
Mar 25 at 15:49
add a comment |Â
1
My guess would be a script in/etc/X11/xinit/xinitrc.d/but I'm not 100% on this.
â arcsin
Mar 25 at 15:37
@arcsin You are correct! If you want to throw that in an answer you'd have my upvote. Scripts inxinitrc.dget run when an xsession is started. It's a perfect way to addxhostrules as an example (and is how the logged in user getsxhostrules allowing them to use theirxsessionnormally).
â Centimane
Mar 25 at 15:46
@arcsin, sorry, I meant at any time, not just on login.
â Toothrot
Mar 25 at 15:49
1
1
My guess would be a script in
/etc/X11/xinit/xinitrc.d/ but I'm not 100% on this.â arcsin
Mar 25 at 15:37
My guess would be a script in
/etc/X11/xinit/xinitrc.d/ but I'm not 100% on this.â arcsin
Mar 25 at 15:37
@arcsin You are correct! If you want to throw that in an answer you'd have my upvote. Scripts in
xinitrc.d get run when an xsession is started. It's a perfect way to add xhost rules as an example (and is how the logged in user gets xhost rules allowing them to use their xsession normally).â Centimane
Mar 25 at 15:46
@arcsin You are correct! If you want to throw that in an answer you'd have my upvote. Scripts in
xinitrc.d get run when an xsession is started. It's a perfect way to add xhost rules as an example (and is how the logged in user gets xhost rules allowing them to use their xsession normally).â Centimane
Mar 25 at 15:46
@arcsin, sorry, I meant at any time, not just on login.
â Toothrot
Mar 25 at 15:49
@arcsin, sorry, I meant at any time, not just on login.
â Toothrot
Mar 25 at 15:49
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433434%2fexecuting-a-command-in-every-x-session%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
My guess would be a script in
/etc/X11/xinit/xinitrc.d/but I'm not 100% on this.â arcsin
Mar 25 at 15:37
@arcsin You are correct! If you want to throw that in an answer you'd have my upvote. Scripts in
xinitrc.dget run when an xsession is started. It's a perfect way to addxhostrules as an example (and is how the logged in user getsxhostrules allowing them to use theirxsessionnormally).â Centimane
Mar 25 at 15:46
@arcsin, sorry, I meant at any time, not just on login.
â Toothrot
Mar 25 at 15:49