VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
How To Autostart Programs On Linux - DistroTube

How To Autostart Programs On Linux - DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
How To Autostart Programs On Linux - DistroTube How do you autostart programs on Linux? While the big desktop environments (like GNOME and Plasma) simplify this, knowing how to setup your autostart programs is especially important for standalone window manager users. While there are a number of ways to do this, I'm going to show you the two ways that I use barrenaedu: DT, how are you? A been using linux for 10 years or more, another way not discussed very much among users and maybe you can talk about it is creating auto run scripts using systemd and init.d as it is very easy and insane powerfull. I used them a lot as they run in sudo mode you can do lot of things during linux initialization. Good vibes, i see some of your videos some times, good contribution to the linux comunity from your side Regards!
Date: 2022-03-30

Comments and reviews: 9


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 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

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

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

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

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

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

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 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






Other channel videos