mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-25 18:40:06 -04:00
Creating WROLPi Controller desktop icon.
This commit is contained in:
parent
8d03d9783a
commit
0e5c977471
3 changed files with 19 additions and 0 deletions
BIN
etc/raspberrypios/controller-logo.png
Normal file
BIN
etc/raspberrypios/controller-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 434 KiB |
6
etc/raspberrypios/controller.desktop
Normal file
6
etc/raspberrypios/controller.desktop
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=WROLPi Controller
|
||||
Type=Link
|
||||
URL=http://127.0.0.1:8087
|
||||
Icon=/opt/wrolpi/etc/raspberrypios/controller-logo.png
|
||||
13
repair.sh
13
repair.sh
|
|
@ -194,6 +194,19 @@ chown -R wrolpi:wrolpi /home/wrolpi /opt/wrolpi*
|
|||
cp /opt/wrolpi/etc/raspberrypios/motd/30-wrolpi.motd /etc/update-motd.d/30-wrolpi
|
||||
chmod +x /etc/update-motd.d/*
|
||||
|
||||
# Copy desktop shortcuts to existing users (new users get them from /etc/skel).
|
||||
if [[ ${rpi} == true ]]; then
|
||||
for user_home in /home/wrolpi /home/pi; do
|
||||
if [ -d "${user_home}/Desktop" ]; then
|
||||
cp /opt/wrolpi/etc/raspberrypios/*.desktop "${user_home}/Desktop/"
|
||||
chown -R "$(basename ${user_home})":"$(basename ${user_home})" "${user_home}/Desktop/"
|
||||
fi
|
||||
done
|
||||
# Update skeleton for future users.
|
||||
mkdir -p /etc/skel/Desktop
|
||||
cp /opt/wrolpi/etc/raspberrypios/*.desktop /etc/skel/Desktop/
|
||||
fi
|
||||
|
||||
systemctl restart renderd
|
||||
systemctl restart wrolpi-help
|
||||
systemctl start wrolpi.target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue