
How To Autostart Programs On Linux - DistroTube
video description
Date: 2022-03-30
Comments and reviews: 9
Mohammad
I am using the old skool method, the .xinitrc. It can be as simples as a single line in the .xinitr rc ..
emacs -fs
Xorg will run GNU Emacs in full-screen, when start the X11 Window session with 'startx' from text console. Yes, I am still using the old skool 'startx' method. Anyway, my basic .xinitrc just like this.
# Set resolution
xrandr --output HDMI-1 --mode 1920x1080
# Set the beautiful full black wallpaper for 'root window'
xsetroot -solid black
# Enable auto blank and monitor's energy saving mode
xset +dpms
# Start st terminal emulator with GNU Screen
st -g 90x25+0+0 -e screen -Rd&
# Finally start my favorite minimalist window manager.
evilwm -snap 5
reply
I am using the old skool method, the .xinitrc. It can be as simples as a single line in the .xinitr rc ..
emacs -fs
Xorg will run GNU Emacs in full-screen, when start the X11 Window session with 'startx' from text console. Yes, I am still using the old skool 'startx' method. Anyway, my basic .xinitrc just like this.
# Set resolution
xrandr --output HDMI-1 --mode 1920x1080
# Set the beautiful full black wallpaper for 'root window'
xsetroot -solid black
# Enable auto blank and monitor's energy saving mode
xset +dpms
# Start st terminal emulator with GNU Screen
st -g 90x25+0+0 -e screen -Rd&
# Finally start my favorite minimalist window manager.
evilwm -snap 5
reply
Nikephor
I have an autostart script that gets executed by qtile on startup with a method I got in the docs. There's a problem tho. Things started with that scripts do not get killed when the session ends, so logging out and logging back in results in duplicate applications/scripts running in the background. Do you know how I can fix this? Maybe making desktop files for the programs instead of running them with a script, and then using dex to launch those would work?
reply
I have an autostart script that gets executed by qtile on startup with a method I got in the docs. There's a problem tho. Things started with that scripts do not get killed when the session ends, so logging out and logging back in results in duplicate applications/scripts running in the background. Do you know how I can fix this? Maybe making desktop files for the programs instead of running them with a script, and then using dex to launch those would work?
reply
Thomas
There actually many other way to auto strart things. The two main solution are the systemd service management (if you have systemd of course) and the crontab for task scheduling. In fact crontab is more powerful than that. You can schedule script execution per week month day or per hour minutes and seconds. And also schedule task on reboot shutdown and things like that.
reply
There actually many other way to auto strart things. The two main solution are the systemd service management (if you have systemd of course) and the crontab for task scheduling. In fact crontab is more powerful than that. You can schedule script execution per week month day or per hour minutes and seconds. And also schedule task on reboot shutdown and things like that.
reply
Jennifer
Hi DT . I have a Corsair keyboard and I use CKB-NEXT and I use the terminal command for systemctl enable . I think this just creates an auto start file into the same directory.. Is there anything I should know about using this command instead of just dragging and dropping the files into the directory?
reply
Hi DT . I have a Corsair keyboard and I use CKB-NEXT and I use the terminal command for systemctl enable . I think this just creates an auto start file into the same directory.. Is there anything I should know about using this command instead of just dragging and dropping the files into the directory?
reply
Bill
In order to connect hardware and software in the correct order, it is important to be able to schedule the start-up of the components. Linux Mint has made it easy for the user by specifying a delay when specifying the startup programs! How do you do in other Distros that lack this?
reply
In order to connect hardware and software in the correct order, it is important to be able to schedule the start-up of the components. Linux Mint has made it easy for the user by specifying a delay when specifying the startup programs! How do you do in other Distros that lack this?
reply
Heath
Semi Newbie with a question. Curious if there is way to dictate which workspaces a program opens up in. I would like to group certain apps to certain desktops. I realise that it's probably different per WM but I wanted to know if its doable at all.
reply
Semi Newbie with a question. Curious if there is way to dictate which workspaces a program opens up in. I would like to group certain apps to certain desktops. I realise that it's probably different per WM but I wanted to know if its doable at all.
reply
Phil
KDE user here. I love how simple the autostart program is - autostart my dock, my Konsole, my Backup application. Nothing more, nothing less. No kruft, all easy.
Thanks for showing us some more ways to make it work on other desktops!
reply
KDE user here. I love how simple the autostart program is - autostart my dock, my Konsole, my Backup application. Nothing more, nothing less. No kruft, all easy.
Thanks for showing us some more ways to make it work on other desktops!
reply
Don
What a great topic! I've been wondering if removing an app got everything out and, thanks to your video, I found that there are actually leftover .desktop files laying around on my system. Well, no longer! Kudos, Derek ;)
reply
What a great topic! I've been wondering if removing an app got everything out and, thanks to your video, I found that there are actually leftover .desktop files laying around on my system. Well, no longer! Kudos, Derek ;)
reply
Dusan
What is wrong with using .xprofile? When using .xprofile, I do not need to make desktop files for all my scripts and programs that do not have desktop files (a lot of programs I use do not have desktop files)
reply
What is wrong with using .xprofile? When using .xprofile, I do not need to make desktop files for all my scripts and programs that do not have desktop files (a lot of programs I use do not have desktop files)
reply
Add a review, comment















