How to run a script / Terminal Command on startup automatically in Debian lxde?
Posted: Tue May 16, 2023 1:37 pm
I have posted this topic on debian-users forum. I am nearing a solution. But it appears that the list leaders and senior members aren't aware of the specifics of lxde session that I have been using since 2007.
Incidentally, I installed the Debian system from a Live-ISO. I use the Debian lxde session, having installed the Official Debian GNU/Linux Live 11.6.0 lxde 2022-12-17T11:46.
I have learnt launching a GUI program when the system starts up to begin the GUI using the GUI application called "Default applications for LXSession" accessible from Start Menu / Preferences, which runs the command lxsession-default-apps, from lxsession-default-app.desktop, target file /usr/share/applications/lxsession-default-apps.desktop. The binary is at /usr/bin.
But I am not aware of how to automatically run a script or a command (that is run at the command prompt of terminal) at the start up of every session.
Could you please advise and/or direct me to the appropriate lxde help files in this regard?
Incidentally, I installed the Debian system from a Live-ISO. I use the Debian lxde session, having installed the Official Debian GNU/Linux Live 11.6.0 lxde 2022-12-17T11:46.
I have learnt launching a GUI program when the system starts up to begin the GUI using the GUI application called "Default applications for LXSession" accessible from Start Menu / Preferences, which runs the command lxsession-default-apps, from lxsession-default-app.desktop, target file /usr/share/applications/lxsession-default-apps.desktop. The binary is at /usr/bin.
But I am not aware of how to automatically run a script or a command (that is run at the command prompt of terminal) at the start up of every session.
Could you please advise and/or direct me to the appropriate lxde help files in this regard?