From daa2e0ab7191d28e09b312322ee29eecaaae13fb Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 24 Feb 2010 13:27:30 -0500 Subject: libexecdir is provided by automake, and gnome-settings-daemon is not always in /usr/libexecdir, use the dir from automake --- Makefile.am | 7 ++++++- data/autostart/autostart | 17 ----------------- data/autostart/autostart.in | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 18 deletions(-) delete mode 100644 data/autostart/autostart create mode 100644 data/autostart/autostart.in diff --git a/Makefile.am b/Makefile.am index 67d6e8b4..bcd7ba0c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,7 +12,6 @@ obtpubincludedir= $(includedir)/openbox/@OBT_VERSION@/obt rrpubincludedir = $(includedir)/openbox/@RR_VERSION@/obrender pixmapdir = $(datadir)/pixmaps xsddir = $(datadir)/openbox -libexecdir = $(prefix)/libexec appsdir = $(datadir)/applications theme = Clearlooks @@ -462,6 +461,10 @@ edit = $(SED) \ -e 's!@libexecdir\@!$(libexecdir)!' \ -e 's!@bindir\@!$(bindir)!' +data/autostart/autostart: $(srcdir)/data/autostart/autostart.in Makefile + @echo make: creating $@ + @$(edit) $< >$@ + data/autostart/openbox-autostart: $(srcdir)/data/autostart/openbox-autostart.in Makefile @echo make: creating $@ @$(edit) $< >$@ @@ -493,6 +496,8 @@ nodist_xsessions_DATA = \ dist_noinst_DATA = \ data/rc.xsd \ data/menu.xsd \ + data/autostart/autostart.in \ + data/autostart/openbox-autostart.in \ data/xsession/openbox.desktop.in \ data/xsession/openbox-gnome.desktop.in \ data/xsession/openbox-kde.desktop.in \ diff --git a/data/autostart/autostart b/data/autostart/autostart deleted file mode 100644 index abd92669..00000000 --- a/data/autostart/autostart +++ /dev/null @@ -1,17 +0,0 @@ -# -# These things are run when an Openbox X Session is started. -# You may place a similar script in $HOME/.config/openbox/autostart -# to run user-specific things. -# - -# If you want to use GNOME config tools... -# -#if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then -# /usr/libexec/gnome-settings-daemon & -#elif which gnome-settings-daemon >/dev/null; then -# gnome-settings-daemon & -#fi - -# If you want to use XFCE config tools... -# -#xfce-mcs-manager & diff --git a/data/autostart/autostart.in b/data/autostart/autostart.in new file mode 100644 index 00000000..1c261a0f --- /dev/null +++ b/data/autostart/autostart.in @@ -0,0 +1,17 @@ +# +# These things are run when an Openbox X Session is started. +# You may place a similar script in $HOME/.config/openbox/autostart +# to run user-specific things. +# + +# If you want to use GNOME config tools... +# +#if test -x @libexecdir@/gnome-settings-daemon >/dev/null; then +# @libexecdir@/gnome-settings-daemon & +#elif which gnome-settings-daemon >/dev/null; then +# gnome-settings-daemon & +#fi + +# If you want to use XFCE config tools... +# +#xfce-mcs-manager & -- cgit v1.2.3