]> Dogcows Code - chaz/openbox/commitdiff
make the xdg-autostart script get installed to PREFIX/lib/openbox, and make the autos...
authorDana Jansens <danakj@orodu.net>
Thu, 28 Feb 2008 00:21:16 +0000 (19:21 -0500)
committerDana Jansens <danakj@orodu.net>
Thu, 28 Feb 2008 00:36:48 +0000 (19:36 -0500)
.gitignore
Makefile.am
data/autostart.sh.in [moved from data/autostart.sh with 92% similarity]

index 3baae1438b16b13785bf0bea7382c9c7fabdf0d5..8397f121ca10651dc8ab9c3670af48ab5da3237d 100644 (file)
@@ -89,3 +89,4 @@ tests/strut
 tests/title
 tests/urgent
 tests/usertimewin
+data/autostart.sh
index 051be7d76101e3483e4dfbfd144ca7dba0dafffc..fa8f65d323105c2e238801fd3f73313f2d8bd0a2 100644 (file)
@@ -11,6 +11,7 @@ pkgconfigdir    = $(libdir)/pkgconfig
 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
 pixmapdir       = $(datadir)/pixmaps
 xsddir          = $(datadir)/openbox
+secretbindir    = $(libdir)/openbox
 
 theme = Clearlooks
 
@@ -31,7 +32,7 @@ bin_PROGRAMS = \
        openbox/openbox \
        tools/gnome-panel-control/gnome-panel-control
 
-bin_SCRIPTS = \
+secretbin_SCRIPTS = \
        tools/xdg-autostart/xdg-autostart
 
 nodist_bin_SCRIPTS = \
@@ -412,8 +413,13 @@ dist_rc_DATA = \
 edit = $(SED) \
        -e 's!@version\@!$(VERSION)!' \
        -e 's!@configdir\@!$(configdir)!' \
+       -e 's!@secretbindir\@!$(secretbindir)!' \
        -e 's!@bindir\@!$(bindir)!'
 
+data/autostart.sh: $(srcdir)/data/autostart.sh.in Makefile
+       @echo make: creating $@
+       @$(edit) $< >$@
+
 %.desktop: %.desktop.in Makefile
        @echo make: creating $@
        @$(edit) $< >$@ 
similarity index 92%
rename from data/autostart.sh
rename to data/autostart.sh.in
index 233450491d69c35c542743883d8218d1842bd8b6..62a30e1c5e8ccbbb412e785cf11d57d5226137f3 100644 (file)
@@ -39,6 +39,6 @@ fi
 # Run XDG autostart things.  By default don't run anything desktop-specific
 # See xdg-autostart --help more info
 DESKTOP_ENV=""
-if which xdg-autostart >/dev/null; then
-  xdg-autostart $DESKTOP_ENV
+if which @secretbindir@/xdg-autostart >/dev/null; then
+  @secretbindir@/xdg-autostart $DESKTOP_ENV
 fi
This page took 0.025147 seconds and 4 git commands to generate.