Executing a command at login [Solved]

Posted:
Jan 7th, '15, 19:50
by rodgoslin
I've recently loaded BitTorrent Sync, as a way of disrtibuting files about my system, machine to machine and platform to platform. Whilst the setup is a bit obscure, it does work well.. The only snag, is that you have to execute a file (btsync), which is a local file. In my long ago, experience with UNIX, there used to be an rc file in the user environment, which would set things up at login, and to which you could add commands to launch programmes. This is absent in Mageia, as far as I can see. This is something that can be done by the user, and not neccesarlily at bootup. So a local user launch option would be entirely adequate
Re: Executing a command at login

Posted:
Jan 8th, '15, 02:25
by doktor5000
Should it be started together with desktop login, or also for tty login?
Re: Executing a command at login

Posted:
Jan 8th, '15, 02:42
by rodgoslin
Thanks for the reply. I finally managed to sort the problem myself, after a bit of searching. I wrote a shell script to launch the command, , then added it to 'Autostart' in system settings>startup & shutdown. The addition was to start, automatically, a BitTorrent Sync session. It didn't seem to be adequately explained in the BitTorrent Sync setup instructions
Re: Executing a command at login [Solved]

Posted:
Jan 9th, '15, 11:01
by tarakbumba
We have it on our Cauldron repos as
btsync package and it automatically starts when system boots via systemd. You may want to use our
spec and source files or
source rpm to build a Mageia 4 package.