Commit 717c327d authored by Vitaly Lipatov's avatar Vitaly Lipatov

common.sh: create shell wrapper with shebang (KDE runs Exec from desktop file…

common.sh: create shell wrapper with shebang (KDE runs Exec from desktop file via execvp) (ALT bug 42641)
parent 0faac05e
......@@ -56,7 +56,10 @@ add_bin_exec_command()
[ -e $BUILDROOT/usr/bin/$name ] && return
mkdir -p $BUILDROOT/usr/bin/
echo "exec $target \"\$@\"" > $BUILDROOT/usr/bin/$name
cat <<EOF > $BUILDROOT/usr/bin/$name
#!/bin/sh
exec $target \"\$@\"
EOF
chmod 0755 $BUILDROOT/usr/bin/$name
pack_file /usr/bin/$name
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment