If I used x-terminal-emulator:
Code: Select all
#!/system/bin/sh
cd <file_location>
x-terminal-emulator -e ./<file>
Code: Select all
--maximize --profile=<profile_name>
but works.
And I need to use a second script that launch the first one:
Code: Select all
#!/bin/sh
cd /<first_script_location>
sh <first_script>
Code: Select all
[...]
Exec=/<second_script_location>/./<second_script>
[...]
If i use gnome-terminal:
It can take all the arguments:
Code: Select all
#!/system/bin/sh
cd <file_location>
gnome-terminal --maximize --profile=<profile_name> -e ./<file>
If I launch the first script: nothing happens.
I if I do it with the option "Run it in terminal" (that is not necessary as the script use the terminal):
Code: Select all
Failed to execute child process "/<first_script_location>/<first_script>" (No such file or directory)