cancel
Showing results for 
Search instead for 
Did you mean: 

Script help

HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
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 2
ejs
Aspiring Hero
Posts: 5,442
Thanks: 631
Fixes: 25
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/
HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
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!