In other distros, I’ve simply pasted a command that I want to run automatically into ~/.profile, but that doesn’t seem to work on fedora. Am I doing something wrong? My ~/.profile file is as follows:
gsettings set org.gnome.shell disable-user-extensions true && gsettings set org.gnome.shell disable-user-extensions false
(as a side note, I’m running this command because if I don’t disable and re-enable the appindicators extension, my appindicators don’t show up properly)
It appears you are using the Workstation version with gnome. If so then you may need to install both packages gnome-tweaks and gnome-extensions-app. Once that is done then use the gnome-tweaks and with the portion in the image below you can easily set apps that will startup automatically as soon as you log in.
Thanks for the reply! I have gnome-tweaks and use it to run applications at login, but as far as I can tell, there doesn’t seem to be a way to run custom commands with it.
I guess I could make a .desktop file with the command I want to run, but that seems like kind of a roundabout solution. I was hoping there would be something more straightforward.
Good morning. I do not know for sure when .bash_profile is sourced. My understanding is that gnome terminal sessions are not login sessions so ,bashrc is sourced but not .bash_profile. But exactly when .bash_profile is sourced is unclear. Some time with google search this morning and yesterday did not really yield a solid answer.
As I understand it, if you were to use a terminal to log in (ctrl-alt-F3 or similar) then .bash_profile is used, but not otherwise. I am not 100% certain though since the default content of .bash_profile seems to be this and matches what is in my user home directory.
$ cat /etc/skel/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs