Mercurial > projects > pk-update-icon
diff Makefile @ 46:aa5d3752091d
Make the update viewer command configurable
Make the update viewer command configurable at copile time through the
UPDATE_VIEWER_COMMAND macro.
Make the update viewer command configurable at run time through the
-c/--command command line option.
Treat the update viewer command as a shell command and parse it via
g_shell_parse_argv(), this allows for running the update viewer via xdg-su,
gnomesu, pkexec etc.
Disable install action in the notification and on the status icon in case no
update viewer command has been provided.
author | Guido Berhoerster <gber@opensuse.org> |
---|---|
date | Thu, 18 Jun 2015 14:10:57 +0200 |
parents | ccbbb9f3d7fc |
children | f119075975e8 |
line wrap: on
line diff
--- a/Makefile Thu Jun 18 13:35:55 2015 +0200 +++ b/Makefile Thu Jun 18 14:10:57 2015 +0200 @@ -40,6 +40,7 @@ INTLTOOL_MERGE := intltool-merge XSLTPROC := xsltproc DOCBOOK5_MANPAGES_STYLESHEET = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl +UPDATE_VIEWER_COMMAND = /usr/bin/gpk-update-viewer define generate-manpage-rule = %.$(1): %.$(1).xml @@ -75,7 +76,8 @@ -DPACKAGE="\"$(PACKAGE)\"" \ -DAPP_NAME=\"$(APP_NAME)\" \ -DVERSION=\"$(VERSION)\" \ - -DLOCALEDIR="\"$(localedir)\"" + -DLOCALEDIR="\"$(localedir)\"" \ + -DUPDATE_VIEWER_COMMAND="\"$(UPDATE_VIEWER_COMMAND)\"" LDLIBS := $(shell pkg-config --libs gtk+-2.0 unique-1.0 libnotify packagekit-glib2) DOCBOOK5_MANPAGES_FLAGS = --stringparam man.authors.section.enabled 0 \ --stringparam man.copyright.section.enabled 0