]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/ioncore_wd.lua
[svn-upgrade] Integrating new upstream version, ion3 (20070506)
[ion3.git] / ioncore / ioncore_wd.lua
index a908d3e29d896ffeac116031bab7ff488a687065..cdb7a36ed815d316df295080ed52629b1377c24d 100644 (file)
@@ -3,10 +3,7 @@
 -- 
 -- Copyright (c) Tuomo Valkonen 2004-2007.
 --
--- Ion is free software; you can redistribute it and/or modify it under
--- the terms of the GNU Lesser General Public License as published by
--- the Free Software Foundation; either version 2.1 of the License, or
--- (at your option) any later version.
+-- See the included file LICENSE for details.
 --
 
 local savefile="saved_wd"
@@ -123,8 +120,7 @@ function ioncore.exec_on(reg, cmd, merr_internal)
             cmd='XTERMCMD='..string.shell_safe(XTERM)..' '..cmd
         end
     end
-    return ioncore.do_exec_rw(reg:rootwin_of(), cmd, 
-                              ioncore.get_dir_for(reg), 
+    return ioncore.do_exec_on(reg, cmd, ioncore.get_dir_for(reg), 
                               merr_internal)
 end