Creating WROLPi Controller desktop icon.

This commit is contained in:
Roland 2026-02-14 17:05:57 -07:00
parent 8d03d9783a
commit 0e5c977471
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 19 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

View 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

View file

@ -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