-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path17-other
executable file
·49 lines (39 loc) · 1.73 KB
/
17-other
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash -eu
. 00-common
# add calamares icon to desktop
echo "Add calamares install icon to desktop"
chroot "$ROOTDIR" xdg-user-dirs-update
if [ -f "$ROOTDIR"/usr/share/applications/calamares.desktop ]; then
mkdir -p "$ROOTDIR"/home/uhu/Asztal
cp "$ROOTDIR"/usr/share/applications/calamares*.desktop "$ROOTDIR"/home/uhu/Asztal/
chmod 755 "$ROOTDIR"/home/uhu/Asztal/calamares*.desktop
else
echo "calamares.desktop missing"
fi
# isolinux background a rendszerre is
#cp -a -f "$DATADIR/isolinux-bg/$DESKTOP.png" "$ROOTDIR/usr/share/backgrounds/UHU/$DESKTOP.png"
# default user settings
echo "Set default user settings"
case $DESKTOP in
gnome)
# echo 'gsettings set org.gnome.desktop.background show-desktop-icons true' >> "$ROOTDIR"/home/uhu/.profile
echo 'gsettings set org.gnome.shell enabled-extensions "["[email protected]","[email protected]","[email protected]","[email protected]"]"' >> "$ROOTDIR"/home/uhu/.profile
;;
xfce)
mkdir -p "$ROOTDIR"/home/uhu/.config/xfce4/xfconf/xfce-perchannel-xml
# default panel
cp "$ROOTDIR"/etc/xdg/xfce4/panel/default.xml "$ROOTDIR"/home/uhu/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
# default theme, icontheme
cp "$ROOTDIR"/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml "$ROOTDIR"/home/uhu/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
;;
lxqt)
mkdir -p "$ROOTDIR"/home/uhu/.config/lxqt/
for config in lxqt panel session windowmanagers; do
cp "$ROOTDIR"/usr/share/lxqt/${config}.conf "$ROOTDIR"/home/uhu/.config/lxqt/
done
;;
*)
;;
esac
chown 1000:999 -R "$ROOTDIR"/home/uhu
rm -Rf "$ROOTDIR/root/.dbus"