mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
bashrc & zshrc: add function fix-autostart.
* Creates and chmods autostart directories as 755. * ~/.config/autostart * /etc/xdg/autostart * Only if we are root.
This commit is contained in:
parent
107f78c517
commit
abb85e3393
13
bashrc
13
bashrc
@ -739,6 +739,19 @@ fix-node () {
|
||||
fi
|
||||
}
|
||||
|
||||
# This function fixes automatic startup in graphical sessions.
|
||||
# I have had issues with auto start not doing anything and this seems to
|
||||
# fix it.
|
||||
fix-autostart() {
|
||||
if [[ $USER = "root" ]]
|
||||
then
|
||||
mkdir -p /etc/xdg/autostart
|
||||
chmod -R 755 /etc/xdg/autostart
|
||||
fi
|
||||
mkdir -p ~/.config/autostart
|
||||
chmod -R 755 ~/.config/autostart
|
||||
}
|
||||
|
||||
# .custom
|
||||
if [ -f ~/.custom ]; then
|
||||
source ~/.custom
|
||||
|
13
zshrc
13
zshrc
@ -708,6 +708,19 @@ fi
|
||||
|
||||
}
|
||||
|
||||
# This function fixes automatic startup in graphical sessions.
|
||||
# I have had issues with auto start not doing anything and this seems to
|
||||
# fix it.
|
||||
fix-autostart() {
|
||||
if [[ $USER = "root" ]]
|
||||
then
|
||||
mkdir -p /etc/xdg/autostart
|
||||
chmod -R 755 /etc/xdg/autostart
|
||||
fi
|
||||
mkdir -p ~/.config/autostart
|
||||
chmod -R 755 ~/.config/autostart
|
||||
}
|
||||
|
||||
# Source files for miscannellious modifications.
|
||||
|
||||
# .custom
|
||||
|
Loading…
Reference in New Issue
Block a user