I have a file named sudoexec located in \usr\local\bin
It contains the following:
It has x property set:
It contains the following:
Code:
#!/bin/bash
sudo -S $1
It has x property set:
So how do I create a desktop file to run this script with any parameter?gregary@Veriton-X4630G:/usr/local/bin$ dir -l
total 28
-rwxr-xr-x 1 root root 7692 Nov 23 2021 apt
-rwxr-xr-x 1 root root 536 Apr 26 2022 gnome-help
-rwxr-xr-x 1 root root 196 Feb 7 2019 highlight-mint
-rwxr-xr-x 1 root root 964 May 15 2019 search
-rwxrwxrwx 1 gregary gregary 25 Nov 6 03:18 sudoexec
-rwxr-xr-x 1 root root 553 Apr 26 2022 yelp
I am trying t do it like you do with windows batch files. Where you, for example, have a backup batch file which runs a data back up on the disk drives specified as parameters.
So I want to do this effectively...
sudoexec "nemo %U"
sudoexec "VNC"
Etc.
Run any program in god mode simply by double licking my various .desktop short cuts, without have to create a seperate script file for each program.
But unfortunately double clicking on my .desktop files will not run the program - nothing happens.
Last edited: