| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/apport/package-hooks/ |
Upload File : |
from apport.hookutils import *
from os import path
import distro
import webbrowser
if distro.id() == 'debian':
community_support = "https://www.debian.org/support"
else:
community_support = "https://www.ubuntu.com/support/community-support"
def add_info(report, ui):
if report['ProblemType'] == 'Crash':
return
response = ui.choice("How would you describe the issue?", ["I'm having problems with the Help Browser.", "I need help performing a Task."], False)
if response == None:
raise StopIteration
if response == [0]: # bug on the documentation or yelp
return
# user is requesting help rather than having a bug.
ui.information("Since you're requesting help rather than having a bug on the application please visit a suitable support resource: %s. Thanks in advance." % community_support)
webbrowser.open(community_support)
raise StopIteration