diff options
author | Sebastian Dransfeld <sd@tango.flipp.net> | 2010-10-18 18:05:22 +0000 |
---|---|---|
committer | Sebastian Dransfeld <sd@tango.flipp.net> | 2010-10-18 18:05:22 +0000 |
commit | 424ee17dc1bcd11ad4cf51d4d42cbca2bee6e260 (patch) | |
tree | 733e9f59acba4be0b718e6a08432639f89902446 /data | |
parent | ef69e949199bf486e672da099ac648154d4fd0d5 (diff) | |
download | enlightenment-424ee17dc1bcd11ad4cf51d4d42cbca2bee6e260.tar.gz |
Add option for efm
[19:55] <pespin> Hi, can someone with commit rights apply this diff to enlightenment_remote please? http://pastebin.ca/1965991
[19:56] <pespin> it adds posibility to launch EFM from there
SVN revision: 53575
Diffstat (limited to 'data')
-rw-r--r-- | data/tools/enlightenment_remote | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/data/tools/enlightenment_remote b/data/tools/enlightenment_remote index 3aa4bda1fe..109d381e82 100644 --- a/data/tools/enlightenment_remote +++ b/data/tools/enlightenment_remote @@ -37,6 +37,8 @@ OPTIONS: -desktop-bg-del OPT1 OPT2 OPT3 OPT4 Delete a desktop bg definition. OPT1 = container no. OPT2 = zone no. OPT3 = desk_x. OPT4 = desk_y. -desktop-bg-list List all current desktop bg definitions + -efm-open-dir OPT1 Open dir in OPT1 in EFileManager. Opens /home/$USER if no path is given or it doesn't exist + Note: This is a new implementation of enlightenment_remote, for more information about it see the '--help-new' option. " @@ -313,6 +315,19 @@ er_desktop_bg_list(){ ERGMST org.enlightenment.wm.Desktop.Background.List } +#------------------------------------------------------------------------------- +# E FileManager open dir +#------------------------------------------------------------------------------- +er_efm_open_dir(){ + if [ $# -lt 2 ] || [ ! -e "$2" ]; then + EFM_DIR="/home/$USER" + else + EFM_DIR="$2" + fi + + dbus-send --session --type=method_call --print-reply=literal --dest=org.enlightenment.FileManager /org/enlightenment/FileManager org.enlightenment.FileManager.OpenDirectory "string:$EFM_DIR" +} + @@ -383,9 +398,12 @@ case "$1" in -desktop-bg-list) er_desktop_bg_list ;; + -efm-open-dir) + er_efm_open_dir "$@" + ;; - # This entry needs to be allways the last option of the list (*) + # This entry needs to be always the last option of the list (*) -h|-help|--help|--h|*) show_help ;; |