summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSimon Lees <simon@simotek.net>2015-07-14 13:07:18 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-07-14 13:07:18 -0400
commit51f18b86422aec617683170622d1e9eb0dfb45b6 (patch)
tree2639ac6d5d99b0f102b6f6d00832ce5d68672d83 /data
parent47f94841493da073c73afab3a6b0c74fc0bf3e7d (diff)
enlightenment_remote: restore compatibility with older versions with bg-add / bg-del
Summary: older versions of enlightenment_remote had a additional first param that did nothing this change detects if that paramater is still passed in and ignores it. There are a couple of applications including variety that rely on this behavior as well as some user scripts Reviewers: zmike, raster Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2813
Diffstat (limited to 'data')
-rw-r--r--data/tools/enlightenment_remote16
1 files changed, 14 insertions, 2 deletions
diff --git a/data/tools/enlightenment_remote b/data/tools/enlightenment_remote
index 3f2043364..dd4ddf127 100644
--- a/data/tools/enlightenment_remote
+++ b/data/tools/enlightenment_remote
@@ -342,14 +342,26 @@ er_desktop_show_by_name(){
342# E Desktop background add 342# E Desktop background add
343#------------------------------------------------------------------------------- 343#-------------------------------------------------------------------------------
344er_desktop_bg_add(){ 344er_desktop_bg_add(){
345 ERCIIIS org.enlightenment.wm.Desktop.Background.Add "$2" "$3" "$4" "$5" 345 # retain compatibility with the older versions by optionally supporting them
346 # no longer required parameter
347 if [ $# -eq 6 ]; then
348 ERCIIIS org.enlightenment.wm.Desktop.Background.Add "$3" "$4" "$5" "$6"
349 elif [ $# -eq 5 ]; then
350 ERCIIIS org.enlightenment.wm.Desktop.Background.Add "$2" "$3" "$4" "$5"
351 fi
346} 352}
347 353
348#------------------------------------------------------------------------------- 354#-------------------------------------------------------------------------------
349# E Desktop background del 355# E Desktop background del
350#------------------------------------------------------------------------------- 356#-------------------------------------------------------------------------------
351er_desktop_bg_del(){ 357er_desktop_bg_del(){
352 ERCIII org.enlightenment.wm.Desktop.Background.Del "$2" "$3" "$4" 358 # retain compatibility with the older versions by optionally supporting them
359 # no longer required parameter
360 if [ $# -eq 5 ]; then
361 ERCIII org.enlightenment.wm.Desktop.Background.Del "$3" "$4" "$5"
362 elif [ $# -eq 4 ]; then
363 ERCIII org.enlightenment.wm.Desktop.Background.Del "$2" "$3" "$4"
364 fi
353} 365}
354 366
355#------------------------------------------------------------------------------- 367#-------------------------------------------------------------------------------