summaryrefslogtreecommitdiffstats
path: root/src/Gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gui')
-rw-r--r--src/Gui/Makefile.am3
-rwxr-xr-xsrc/Gui/abrt-gui4
2 files changed, 6 insertions, 1 deletions
diff --git a/src/Gui/Makefile.am b/src/Gui/Makefile.am
index 7f61bbce..60a7bfe3 100644
--- a/src/Gui/Makefile.am
+++ b/src/Gui/Makefile.am
@@ -2,7 +2,7 @@
bin_SCRIPTS = abrt-gui
-PYTHON_FILES = CCDBusBackend.py CCDumpList.py CCDump.py CC_gui_functions.py \
+PYTHON_FILES = CCDBusBackend.py CCDumpList.py CCDump.py CC_gui_functions.py \
CCReporterDialog.py CCReport.py abrt_utils.py \
CCMainWindow.py CellRenderers.py ABRTExceptions.py \
SettingsDialog.py ABRTPlugin.py PluginList.py PluginSettingsUI.py \
@@ -28,4 +28,5 @@ abrt.desktop:
install-exec-hook:
for b in $(bin_SCRIPTS); do \
sed 's:/usr/share:$(datadir):g' -i $(DESTDIR)$(bindir)/$$b || exit $$?; \
+ sed 's:VERSION:@VERSION@:g' -i $(DESTDIR)$(bindir)/$$b || exit $$?; \
done
diff --git a/src/Gui/abrt-gui b/src/Gui/abrt-gui
index 85bdebbc..78379be7 100755
--- a/src/Gui/abrt-gui
+++ b/src/Gui/abrt-gui
@@ -1,4 +1,8 @@
#!/bin/sh
+if test x"$1" = x"--help" || test x"$1" = x"--version"; then
+ echo "abrt-gui VERSION"
+ exit 0
+fi
export PYTHONPATH=/usr/share/abrt
export XLOGNAME=$LOGNAME
exec /usr/bin/python /usr/share/abrt/CCMainWindow.py "$@"