summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/tools/enlightenment_remote20
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
;;