cancel
Showing results for 
Search instead for 
Did you mean: 

Script help

Community Veteran
Posts: 6,773
Thanks: 257
Fixes: 20
Registered: 16-02-2009

Script help

I am trying to get a caja (nautilus) script running.
I want to be able to right click on an .apk file and choose to install it to my tablet.
Any ideas?
the command to install is adb install <file>
2 REPLIES
Community Veteran
Posts: 5,164
Thanks: 478
Fixes: 20
Registered: 10-06-2010

Re: Script help

It doesn't need to be a nautilus script, normally the same nautilus scripts are shown for all file types.
An alternative would be to create a .desktop file with the correct MimeType, Exec and other keys, and put it in ~/.local/share/applications/
Community Veteran
Posts: 6,773
Thanks: 257
Fixes: 20
Registered: 16-02-2009

Re: Script help

I don't want it opened automatically by this app, I only want to select and install, without having to open a terminal and put in the above command.
It should be trivial, but I really want it to open in a terminal so I can see what the result is.
So far I have managed to open the terminal but get "can't open binary file"
I am trying
mate-terminal --window-with-profile=wait -x adb install "$1"

Ok that worked, had to change the original -e to -x, the help file said use -e!