Skip to content

Instantly share code, notes, and snippets.

@comm1x
Created October 20, 2017 10:10
Show Gist options
  • Save comm1x/3e41a6355460908c0c0becb1bde0c8ea to your computer and use it in GitHub Desktop.
Save comm1x/3e41a6355460908c0c0becb1bde0c8ea to your computer and use it in GitHub Desktop.
Nemo Actions
Nemo actions stored in `~/.local/share/nemo/actions/*.nemo_action`
File `install-apk.nemo_action`
```
[Nemo Action]
# Add menu to *.apk files
#
# adb install FILENAME
#
Active=true
Name=adb install %f
Comment=Install file on available Android device
Exec=gnome-terminal -x sh -c "adb install %F"
Icon-Name=bash
Selection=s
Extensions=apk;
Quote=double
EscapeSpaces=true
```
File `extract-apk.nemo_action`
```
[Nemo Action]
# Add menu to *.apk files
#
# ~/tools/apktool/apktool d FILENAME
#
# For build use 'b'
#
Active=true
Name=Extract APK
Comment=Extract APK to current folder using apktool
Exec=gnome-terminal -x sh -c "cd \"`dirname \"%F\"`\"; /home/cmx/tools/apktool/apktool -f d '%F';"
Icon-Name=bash
Selection=s
Extensions=apk;
Quote=double
EscapeSpaces=true
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment