Commit 79c2d34d authored by Jim Nelson's avatar Jim Nelson

#2063: Optionally install apport hook. Courtesy Bruno Girin.

parent 0bb35484
......@@ -366,6 +366,10 @@ else
mkdir -p $(DESTDIR)$(SCHEMA_FILE_DIR)
$(INSTALL_DATA) misc/shotwell.schemas $(DESTDIR)$(SCHEMA_FILE_DIR)
endif
ifdef ENABLE_APPORT_HOOK_INSTALL
mkdir -p $(DESTDIR)$(PREFIX)/share/apport/package-hooks
$(INSTALL_DATA) apport/shotwell.py $(DESTDIR)$(PREFIX)/share/apport/package-hooks
endif
endif
-$(foreach lang,$(SUPPORTED_LANGUAGES),`mkdir -p $(SYSTEM_LANG_DIR)/$(lang)/LC_MESSAGES ; \
$(INSTALL_DATA) $(LOCAL_LANG_DIR)/$(lang)/LC_MESSAGES/shotwell.mo \
......@@ -386,6 +390,9 @@ ifndef DISABLE_SCHEMAS_INSTALL
else
rm -f $(DESTDIR)$(SCHEMA_FILE_DIR)/shotwell.schemas
endif
ifdef ENABLE_APPORT_HOOK_INSTALL
rm -f $(DESTDIR)$(PREFIX)/share/apport/package-hooks/shotwell.py
endif
endif
$(foreach lang,$(SUPPORTED_LANGUAGES),`rm -f $(SYSTEM_LANG_DIR)/$(lang)/LC_MESSAGES/shotwell.mo`)
......
import os.path
import apport.hookutils
def add_info(report):
log_file = os.path.expanduser('~/.cache/shotwell/shotwell.log')
apport.hookutils.attach_file_if_exists(report, log_file, 'shotwell.log')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment