Use libexecdir
authorHuang Peng <shawn.p.huang@gmail.com>
Wed, 13 Aug 2008 07:15:09 +0000 (15:15 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Wed, 13 Aug 2008 07:15:09 +0000 (15:15 +0800)
setup/ibus-setup.in
setup/main.py

index 936c2816d06d10e70829c930aa125a54ffaabae0..d08e8b6df0e186196f99c3965454250fee733304 100644 (file)
@@ -19,6 +19,9 @@
 # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 # Boston, MA  02111-1307  USA
 
+prefix=@prefix@
+exec_prefix=@exec_prefix@
 export IBUS_PREFIX=@prefix@
+export IBUS_LIBEXECDIR=@libexecdir@
 exec python @prefix@/share/ibus/setup/main.py $@
 
index 2e11c9824907db968800b25975c09a644cee7726..aa8eee46965484f35408880679030ba7675fe1e4 100644 (file)
@@ -289,7 +289,7 @@ class Setup(object):
 
     def __is_auto_start(self):
         link_file = path.join(BaseDirectory.xdg_config_home, "autostart/ibus.desktop")
-        ibus_desktop = path.join(os.getenv("IBUS_PREFIX"), "share/applications/ibus.desktop")
+        ibus_desktop = path.join(os.getenv("IBUS_LIBEXECDIR"), "share/applications/ibus.desktop")
 
         if not path.exists(link_file):
             return False