⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.91
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
apport
/
package-hooks
/
View File Name :
source_yelp.py
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