F5F Stay Refreshed Software Operating Systems Use a startup script like systemd or init.d to execute the .sh file when the system boots.

Use a startup script like systemd or init.d to execute the .sh file when the system boots.

Use a startup script like systemd or init.d to execute the .sh file when the system boots.

E
Eusebio06
Senior Member
595
11-27-2024, 05:25 PM
#1
I set up a Conky theme and it needs a start.sh file to run each time. I’m looking for a way to automate this without manual effort. I’m on Fedora 37, and the crontab -e command didn’t work—maybe I made a mistake. I’m just starting out with Linux.
E
Eusebio06
11-27-2024, 05:25 PM #1

I set up a Conky theme and it needs a start.sh file to run each time. I’m looking for a way to automate this without manual effort. I’m on Fedora 37, and the crontab -e command didn’t work—maybe I made a mistake. I’m just starting out with Linux.

F
Flashwing006
Member
217
11-27-2024, 11:53 PM
#2
You can include it in your ~/.profile to execute on login if it functions
F
Flashwing006
11-27-2024, 11:53 PM #2

You can include it in your ~/.profile to execute on login if it functions

O
oleg123700
Member
55
11-29-2024, 09:59 AM
#3
Based on my search, you only have a .bash_profile and not a .profile file.
O
oleg123700
11-29-2024, 09:59 AM #3

Based on my search, you only have a .bash_profile and not a .profile file.

D
DenUppskattade
Junior Member
21
12-01-2024, 04:06 AM
#4
Yes, there are startup applications. Mint has been offering them for a long time, and I’ve configured some to launch automatically when the system starts.
D
DenUppskattade
12-01-2024, 04:06 AM #4

Yes, there are startup applications. Mint has been offering them for a long time, and I’ve configured some to launch automatically when the system starts.

D
DevilDoggy657
Senior Member
530
12-01-2024, 09:35 AM
#5
You likely have multiple automatically launched programs in either /etc/xdg/autostart or ~/.config/autostart. These folders are recognized by all desktop environments, and the some_program.desktop files should be processed as well. Consider copying one of these files and adjusting it to create your custom startup script. In ~/.config it applies only to that user, while /etc works for everyone.
D
DevilDoggy657
12-01-2024, 09:35 AM #5

You likely have multiple automatically launched programs in either /etc/xdg/autostart or ~/.config/autostart. These folders are recognized by all desktop environments, and the some_program.desktop files should be processed as well. Consider copying one of these files and adjusting it to create your custom startup script. In ~/.config it applies only to that user, while /etc works for everyone.

N
Nickwheels1
Junior Member
23
12-01-2024, 10:05 AM
#6
there are several options to reach this goal; crontab might not be the best fit because it operates in a separate shell. I recommend adding your command startup.sh at the end of .bash_rc or .profile files (you can create them if needed).
N
Nickwheels1
12-01-2024, 10:05 AM #6

there are several options to reach this goal; crontab might not be the best fit because it operates in a separate shell. I recommend adding your command startup.sh at the end of .bash_rc or .profile files (you can create them if needed).