diff options
Diffstat (limited to 'files')
-rw-r--r-- | files/add-draklive-install-shortcut | 17 | ||||
-rw-r--r-- | files/add-draklive-install-shortcut.desktop | 8 |
2 files changed, 25 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 diff --git a/files/add-draklive-install-shortcut.desktop b/files/add-draklive-install-shortcut.desktop new file mode 100644 index 0000000..8e5b7fc --- /dev/null +++ b/files/add-draklive-install-shortcut.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Add draklive-install shortcut +Comment=Add draklive-install shortcut to desktop +Type=Application +Terminal=false +StartupNotify=false +Exec=/usr/bin/add-draklive-install-shortcut +OnlyShowIn=XFCE; |