updates
This commit is contained in:
parent
01793449fd
commit
0c59149197
23
raspi.sh
23
raspi.sh
@ -136,28 +136,11 @@ fi
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# autostart kodi in desktop
|
||||||
mkdir -p /home/${user}/.config/autostart
|
mkdir -p /home/${user}/.config/autostart
|
||||||
echo '[Desktop Entry]
|
cp /usr/share/applications/kodi.desktop /home/${user}/.config/autostart/kodi.desktop
|
||||||
Version=1.0
|
|
||||||
Name=Kodi
|
|
||||||
GenericName=Media Center
|
|
||||||
GenericName[zh_CN]=媒体中心
|
|
||||||
Comment=Manage and view your media
|
|
||||||
Comment[ru]=Просмотр и управление мультимедиа
|
|
||||||
Comment[zh_CN]=管理和查看您的媒体
|
|
||||||
Exec=kodi
|
|
||||||
Icon=kodi
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
Categories=AudioVideo;Video;Player;TV;
|
|
||||||
X-GNOME-Autostart-enabled=true
|
|
||||||
NoDisplay=false
|
|
||||||
Hidden=false
|
|
||||||
Name[de_DE]=Kodi
|
|
||||||
Comment[de_DE]=Manage and view your media
|
|
||||||
X-GNOME-Autostart-Delay=0
|
|
||||||
' >/home/${user}/.config/autostart/kodi.desktop
|
|
||||||
|
|
||||||
|
# rights
|
||||||
chmod 700 /home/${user} /home/${user}/.xsessionrc /home/${user}/.config /home/${user}/.config/autostart /home/${user}/.config/autostart/kodi.desktop
|
chmod 700 /home/${user} /home/${user}/.xsessionrc /home/${user}/.config /home/${user}/.config/autostart /home/${user}/.config/autostart/kodi.desktop
|
||||||
chown ${user}: /home/${user} /home/${user}/.xsessionrc /home/${user}/.config /home/${user}/.config/autostart /home/${user}/.config/autostart/kodi.desktop
|
chown ${user}: /home/${user} /home/${user}/.xsessionrc /home/${user}/.config /home/${user}/.config/autostart /home/${user}/.config/autostart/kodi.desktop
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user