Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Build cleanups for Xfce #7

Merged
merged 2 commits into from

2 participants

@danc86

Hoping to get these merged so that I can submit a Fedora package review for xmonad-log-applet :-)

danc86 added some commits
@danc86 danc86 Install Xfce binary in $(libdir)/xfce4/panel/plugins
This is in line with other Xfce panel plugins. Installing it to /usr/libexec is
not a good choice (even though it's what GNOME does) because it is not
multilib-compatible.
e199861
@danc86 danc86 Don't create empty dbus services dir for Xfce 4d521eb
@alexkay alexkay merged commit dbe208f into alexkay:master
@alexkay
Owner

Thank you Dan and sorry it took so long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 21, 2012
  1. @danc86

    Install Xfce binary in $(libdir)/xfce4/panel/plugins

    danc86 authored
    This is in line with other Xfce panel plugins. Installing it to /usr/libexec is
    not a good choice (even though it's what GNOME does) because it is not
    multilib-compatible.
  2. @danc86
This page is out of date. Refresh to see the latest.
View
11 Makefile.am
@@ -1,4 +1,5 @@
-libexec_PROGRAMS = xmonad-log-applet
+plugindir = $(PLUGIN_DIR)
+plugin_PROGRAMS = xmonad-log-applet
xmonad_log_applet_SOURCES = main.c
@@ -16,20 +17,20 @@ appletdir = $(LIBPANEL_APPLET_DIR)
if PANEL_XFCE4
applet_files = xmonad-log-applet.desktop
$(applet_files): $(applet_files:.desktop=.desktop.in)
- $(SED) -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@
+ $(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
else
applet_files = org.gnome.panel.XmonadLogApplet.panel-applet
$(applet_files): $(applet_files:.panel-applet=.panel-applet.in)
- $(SED) -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@
+ $(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
endif
applet_DATA = $(applet_files)
+if !PANEL_XFCE4
servicedir = $(SESSION_BUS_SERVICES_DIR)
service_in_files = org.gnome.panel.applet.XmonadLogAppletFactory.service.in
-if !PANEL_XFCE4
service_DATA = $(service_in_files:.service.in=.service)
org.gnome.panel.applet.XmonadLogAppletFactory.service: $(service_in_files)
- $(SED) -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@
+ $(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
endif
DISTCLEANFILES = \
View
4 configure.ac
@@ -28,21 +28,25 @@ AS_IF(
[test "x$panel" = xgnome2],
[PKG_CHECK_MODULES(LIBPANEL, libpanelapplet-3.0 >= 2.32.0)]
LIBPANEL_APPLET_DIR=`$PKG_CONFIG --variable=prefix libpanelapplet-3.0`/share/gnome-panel/applets
+ PLUGIN_DIR=`$PKG_CONFIG --variable=prefix libpanelapplet-3.0`/libexec
[AC_DEFINE(PANEL_GNOME2, 1, [panel version])]
,
[test "x$panel" = xgnome3],
[PKG_CHECK_MODULES(LIBPANEL, libpanelapplet-4.0 >= 3.0.0)]
LIBPANEL_APPLET_DIR=`$PKG_CONFIG --variable=libpanel_applet_dir libpanelapplet-4.0`
+ PLUGIN_DIR=`$PKG_CONFIG --variable=prefix libpanelapplet-4.0`/libexec
[AC_DEFINE(PANEL_GNOME3, 1, [panel version])]
,
[test "x$panel" = xxfce4],
[PKG_CHECK_MODULES(LIBPANEL, libxfce4panel-1.0 >= 4.6.0)]
LIBPANEL_APPLET_DIR=`$PKG_CONFIG --variable=prefix libxfce4panel-1.0`/share/xfce4/panel-plugins
+ PLUGIN_DIR=`$PKG_CONFIG --variable=libdir libxfce4panel-1.0`/xfce4/panel/plugins
[AC_DEFINE(PANEL_XFCE4, 1, [panel version])]
,
[AC_MSG_ERROR([Unknown panel type, use gnome2, gnome3 or xfce4])]
)
AC_SUBST([LIBPANEL_APPLET_DIR])
+AC_SUBST([PLUGIN_DIR])
AM_CONDITIONAL([PANEL_GNOME2], [test "x$panel" = xgnome2])
AM_CONDITIONAL([PANEL_GNOME3], [test "x$panel" = xgnome3])
View
2  org.gnome.panel.XmonadLogApplet.panel-applet.in
@@ -1,6 +1,6 @@
[Applet Factory]
Id=XmonadLogAppletFactory
-Location=@LIBEXECDIR@/xmonad-log-applet
+Location=@PLUGIN_DIR@/xmonad-log-applet
Name=Xmonad Log Factory
Description=Factory for the xmonad-log-applet
View
2  org.gnome.panel.applet.XmonadLogAppletFactory.service.in
@@ -1,3 +1,3 @@
[D-BUS Service]
Name=org.gnome.panel.applet.XmonadLogAppletFactory
-Exec=@LIBEXECDIR@/xmonad-log-applet
+Exec=@PLUGIN_DIR@/xmonad-log-applet
View
2  xmonad-log-applet.desktop.in
@@ -3,6 +3,6 @@ Type=X-XFCE-PanelPlugin
Name=Xmonad Log Applet
Comment=Monitor your Xmonad log
Icon=xmonad-log-applet
-X-XFCE-Exec=@LIBEXECDIR@/xmonad-log-applet
+X-XFCE-Exec=@PLUGIN_DIR@/xmonad-log-applet
X-XFCE-Unique=false
X-XFCE-Internal=false
Something went wrong with that request. Please try again.