Skip to content

Commit

Permalink
Moved creation of user folders into startwm script
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor309 committed Jul 25, 2024
1 parent 8baf2d4 commit 5f9cd0e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 25 deletions.
26 changes: 17 additions & 9 deletions root/defaults/startwm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,23 @@ if [ ! -f $HOME/.config/kscreenlockerrc ]; then
kwriteconfig5 --file $HOME/.config/kscreenlockerrc --group Daemon --key Autolock false
fi

# set folder locations
xdg-user-dirs-update --set DESKTOP /config/Desktop
xdg-user-dirs-update --set DOCUMENTS /config/Documents
xdg-user-dirs-update --set DOWNLOAD /config/Downloads
xdg-user-dirs-update --set MUSIC /config/Music
xdg-user-dirs-update --set PICTURES /config/Pictures
xdg-user-dirs-update --set PUBLICSHARE /config/Public
xdg-user-dirs-update --set TEMPLATES /config/Templates
xdg-user-dirs-update --set VIDEOS /config/Videos
# create user folders
if [ ! -f "$HOME/.firstsetup" ]; then
mkdir -p $HOME/{Desktop,Documents,Downloads,Music,Pictures,Public,Templates,Videos}
chown abc:abc $HOME/{Desktop,Documents,Downloads,Music,Pictures,Public,Templates,Videos}

xdg-user-dirs-update --set DESKTOP $HOME/Desktop
xdg-user-dirs-update --set DOCUMENTS $HOME/Documents
xdg-user-dirs-update --set DOWNLOAD $HOME/Downloads
xdg-user-dirs-update --set MUSIC $HOME/Music
xdg-user-dirs-update --set PICTURES $HOME/Pictures
xdg-user-dirs-update --set PUBLICSHARE $HOME/Public
xdg-user-dirs-update --set TEMPLATES $HOME/Templates
xdg-user-dirs-update --set VIDEOS $HOME/Videos

touch $HOME/.firstsetup
fi


# launch de
/usr/bin/dbus-launch /usr/bin/startplasma-x11 > /dev/null 2>&1
Empty file.
Empty file.
14 changes: 0 additions & 14 deletions root/etc/s6-overlay/s6-rc.d/init-setupkde/run

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-setupkde/type

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-setupkde/up

This file was deleted.

Empty file.

0 comments on commit 5f9cd0e

Please sign in to comment.