diff --git a/profiles/templates/6_ac_desktop_profile/2-user/xfce-base/Xfce-4.10/.config/autostart/xfce4-tips-autostart.desktop b/profiles/templates/6_ac_desktop_profile/2-user/xfce-base/Xfce-4.10/.config/autostart/xfce4-tips-autostart.desktop deleted file mode 100644 index 567306725..000000000 --- a/profiles/templates/6_ac_desktop_profile/2-user/xfce-base/Xfce-4.10/.config/autostart/xfce4-tips-autostart.desktop +++ /dev/null @@ -1,3 +0,0 @@ -[Desktop Entry] -Hidden=true - diff --git a/profiles/templates/6_ac_desktop_profile/2-user/xfce-base/Xfce-4.10/Desktop/x-set-gio.sh b/profiles/templates/6_ac_desktop_profile/2-user/xfce-base/Xfce-4.10/Desktop/x-set-gio.sh new file mode 100644 index 000000000..73774bbba --- /dev/null +++ b/profiles/templates/6_ac_desktop_profile/2-user/xfce-base/Xfce-4.10/Desktop/x-set-gio.sh @@ -0,0 +1,18 @@ +# Calculate exec=/bin/bash +# Adding desktop icons to trusted +file_exec=#-ur_home_path-#/.config/autostart/gio_rules.desktop +if which gio &>/dev/null +then + cd "#-ini(resource.desktop)-#" + for i in *.desktop + do + gio_rules+="gio set -t string '#-ini(resource.desktop)-#/$i' \ + metadata::xfce-exe-checksum \ + $(sha256sum $i | awk '{print $1}'); " + done +fi +gio_rules+="rm $file_exec" + +echo "[Desktop Entry] +Exec=bash -c \"$gio_rules\" +Hidden=false" > $file_exec