1
I have a very simple script, similar to this:
#!/bin/bash
#Seleciono o diretório onde se encontra o arquivo para execução
cd '/home/vmi/Área de Trabalho/TesteComandosNoLinux'
#Executo meu software
mono my-program.exe
I found that I need my software to run as an administrator for some functionality to work properly.
That script is executed with two clicks to make it as user-friendly as possible.
I would like to keep running with two clicks, but I couldn’t create (or find a script) like this.
how do I do that ?
– Thiago Soares Mota
complemented the answer. Give a look!
– Valmor Flores
Dude, I did this add the script to root and it didn’t work. I’ll do it again by consciousness-raising
– Thiago Soares Mota
Did it belong to the sudo group? When giving an ls -la the properties should be similar to this: -rwxr-Xr-x 1 Read more 149 May 8 2019 valmor_emulator.sh
– Valmor Flores
I just did it again. The command was executed as described. By running ls -la I get -rwxrwxrwx Spectrum sudo 44 Nov 22 18:20 VMIS.sh.
– Thiago Soares Mota
But it hasn’t worked yet.
– Thiago Soares Mota
True, only for sure when you have run in the terminal, then appears the confirmation :/
– Valmor Flores
I’ll show you a resolution that I found as a response option. That’s not where I’m going yet so I won’t mark it as solved. But you can help someone help me.
– Thiago Soares Mota
Now I am in doubt whether I should complete the question or post as an answer
– Thiago Soares Mota