Updating branch refs/heads/master to 32a6d975dc78fb5c2b0b1b9dcc13f854bda9c425 (commit) from e23b0e54105059ba0634222b9dbc6034fe0395b2 (commit)
commit 32a6d975dc78fb5c2b0b1b9dcc13f854bda9c425 Author: Nick Schermer <n...@xfce.org> Date: Sun Nov 6 15:15:25 2011 +0100 Start in collapsed mode if xfrun4 symlink is used. src/Makefile.am | 5 +++++ src/main.c | 4 ++++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 6f74907..1c08eb9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -53,6 +53,11 @@ xfce4_appfinder_LDFLAGS = \ -no-undefined \ $(PLATFORM_LDFLAGS) +# install symlink to 'xfrun4' +install-exec-hook: + $(mkinstalldirs) $(DESTDIR)$(bindir) + -( cd $(DESTDIR)$(bindir) ; test -x xfrun4 || ln -sf xfce4-appfinder xfrun4 ) + if MAINTAINER_MODE appfinder-preferences-ui.h: $(srcdir)/appfinder-preferences.glade Makefile diff --git a/src/main.c b/src/main.c index cfd8cc5..457d81c 100644 --- a/src/main.c +++ b/src/main.c @@ -436,6 +436,10 @@ main (gint argc, gchar **argv) if (opt_quit) return appfinder_dbus_quit (); + /* if started with the xfrun4 executable, start in collapsed mode */ + if (!opt_collapsed && strcmp (*argv, "xfrun4") == 0) + opt_collapsed = TRUE; + /* become the serivce owner or ask the current * owner to spawn an instance */ if (G_LIKELY (!opt_disable_server)) _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits