Re: How to run a command / script on startup automatically in linux?
On Mon, 15 May 2023 20:26:09 +0200
<tomas@tuxteam.de> wrote:
> Is it this mousepad?
>
> mousepad/stable 0.5.2-1 amd64
> simple Xfce oriented text editor
>
> > But the program doesn't launch at startup. Where I am going wrong?
> > Does it fail to start because the command is run before the GUI
> > starts up?
>
> Then yes: system startup is "too early". Most probably you don't even
> want to have it running as a "system program", but as a "user
> program", under your user ID and whithin your (user) graphical
> session.
>
> In this case, I'd look at what possibilities your desktop environment
> (or window manager) offer. They usually have a way to start programs
> at session start (at which point all the environment your mousepad
> will need is set up).
Right. If it is that mousepad, and if the OP is running XFCE, he can
probably add it to XFCE's session manager. Applications -> Settings ->
Session and Startup -> Application Autostart.
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/
Reply to: