How can I pass arguments from a bash script to a binary?
I have a desktop file app.desktop
and an wrapper app.wrapper
that calls the app binary. I want to have app.desktop
calling the wrapper with Exec=./app.wrapper arg1 arg3 -a arg4
then from the app.wrapper
to pass it to /usr/bin/app
.
How can I easily do this?
Example of wrapper file:
#!/bin/bash
SCALE=$(( $GRID_UNIT_PX / 8 ))
export GDK_BACKEND=x11
export GDK_SCALE=$SCALE
exec usr/bin/app args here
Thanks.