Page 1 of 1

2 accounts question

PostPosted: Aug 7th, '23, 13:52
by GeorgeM
Hello,
I have two accounts in my Mageia and I would like to run a bash script I wrote at startup
so i can use it in both accounts when I log in
thank you

Re: 2 accounts question

PostPosted: Aug 7th, '23, 17:06
by doktor5000
Hi there, it would help if you could provide some more information on what that script should actually do.

Generally speaking, if you want it to run it when you login to your graphical session, you could put a .desktop file to run that script below /etc/xdg/autostart/ - see https://specifications.freedesktop.org/ ... atest.html
You could also create a systemd service for it, when runs when the system boots up, or a systemd user service which runs when the user is logged in. Although it depends what you actually want to do in that script, there are also some more ways to start it ... you could also simply call it in your ~/.bash_profile