summaryrefslogtreecommitdiffstats
path: root/files/add-draklive-install-shortcut
diff options
context:
space:
mode:
Diffstat (limited to 'files/add-draklive-install-shortcut')
-rw-r--r--files/add-draklive-install-shortcut17
1 files changed, 17 insertions, 0 deletions
diff --git a/files/add-draklive-install-shortcut b/files/add-draklive-install-shortcut
new file mode 100644
index 0000000..8c81d8b
--- /dev/null
+++ b/files/add-draklive-install-shortcut
@@ -0,0 +1,17 @@
+#!/usr/bin/sh
+
+dst_dir=$HOME/Desktop
+
+src_file=/usr/share/applications/mageia-draklive-install.desktop
+dst_file=$dst_dir/draklive-install.desktop
+
+[ -x /usr/bin/gio ] || exit
+[ -x /usr/bin/sha256sum ] || exit
+[ -r $src_file ] || exit
+[ -e $dst_file ] && exit
+
+mkdir -p $dst_dir
+cp $src_file $dst_file
+checksum=$(sha256sum $dst_file)
+gio set $dst_file metadata::xfce-exe-checksum ${checksum:0:64}
+chmod 750 $dst_file