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
This commit is contained in:
Sebastian Dransfeld 2010-10-18 18:05:22 +00:00
parent ef69e94919
commit 424ee17dc1
1 changed files with 19 additions and 1 deletions

View File

@ -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
;;