summaryrefslogtreecommitdiffstats
path: root/files/add-draklive-install-shortcut
blob: 8c81d8bf000c2e6a0c2717ae9738f6af68de965b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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