From 23b54ff619291d623191dbc9091e71aed9d6cc9d Mon Sep 17 00:00:00 2001 From: Francesco Basile <59255877+parmigggiana@users.noreply.github.com> Date: Sat, 27 Jul 2024 17:08:32 +0200 Subject: [PATCH] finally fix desktop shortcuts (war is over) --- chroot_scripts/40-desktop.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chroot_scripts/40-desktop.sh b/chroot_scripts/40-desktop.sh index 735ca8c..a4ffdce 100755 --- a/chroot_scripts/40-desktop.sh +++ b/chroot_scripts/40-desktop.sh @@ -6,15 +6,14 @@ for file in ./desktop/*.desktop; do sudo -u $MISO_USERNAME cp ./img/$file.png /home/$MISO_USERNAME/.config/WEEE\ Open/ sudo -u $MISO_USERNAME chmod +x /home/$MISO_USERNAME/Desktop/$file.desktop done -sudo tee /home/$MISO_USERNAME/.config/autostart/trust_desktop_shortcuts.dekstop </dev/null +sudo -u $MISO_USERNAME tee /home/$MISO_USERNAME/.config/autostart/trust_desktop_shortcuts.desktop </dev/null [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Trust Desktop Shortcuts Comment=Automatically trust all the .desktop files on the desktop -Exec=for file in *.desktop; do gio set -t string \$file metadata::xfce-exe-checksum "\$(sha256sum \$file | awk '{print \$1}')"; done -Path=/home/$MISO_USERNAME/Desktop/ +Exec=bash -c "for file in /home/$MISO_USERNAME/Desktop/*.desktop; do gio set -t string \\\$file metadata::xfce-exe-checksum \\\$(sha256sum \\\$file | awk '{print \\\$1}'); done" OnlyShowIn=XFCE; StartupNotify=false Terminal=false