403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/apport/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/apport/__pycache__/ui.cpython-314.pyc
+
e��i:,��.�Rt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t	^RI
t
^RIt^RI
t
^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIHtHt^RIHt^RI H!t!^RI"t#^RI$t#^RI%t#^RI&t#^RI't#^RI(H)t)H*t*^RI+H,t-^RI.H/t/Rt0]PbPeR	R
4t3Rt4Rt5RR
Rllt6RRlt7RRlt8RRlt9RR/RRllt:Rt;R Rlt<]Pz!RR44t>!RR4t?R#)!z�Abstract Apport user interface.

This encapsulates the workflow and common code for any user interface
implementation (like GTK, Qt, or CLI).
N)�Callable�Sequence)�gettext)�Any)�HookUI�NoninteractiveHookUI)�impl)�get_process_user_and_groupz2.34.0�APPORT_SYMPTOMS_DIRz/usr/share/apport/symptomsi c��\P!RVPRR44P^4p\	V4# \
\3dR#i;i)zExtract process ID from report.z
Pid:	(.*)
�
ProcStatus�N)�re�search�get�group�int�
IndexError�AttributeError)�report�pids& �+/usr/lib/python3/dist-packages/apport/ui.py�get_pidr?sM����i�i���
�
�<��(D�E�K�K�A�N���3�x�����'����s�AA�A�Ac�X�V^8�dQhR\R\R,R\R,/#)��key�defaultN�return��strr)�formats"r�__annotate__r!Hs)��	�	�c�	�C�$�J�	�#��*�	�c�v�\\PV,4# \\3dTu#i;i)z�Get an environment variable as integer.

Return None if it doesn't exist or failed to convert to integer.
The optional second argument can specify an alternate default.
)r�os�environ�KeyError�
ValueError)rrs&&r�_get_env_intr(Hs3����2�:�:�c�?�#�#���j�!�����s�"�8�8c�J�V^8�dQhR\R\R\R,/#)r�name�uidrNr)r s"rr!r!Ts%��	'�	'�s�	'��	'��t��	'r"c	���\P!RRRR\V4V.RRRR7pVP^8wgVP'gR#\VPP
44#)�pgrepz-nz-x�-uTF)�capture_output�check�textN)�
subprocess�runr�
returncode�stdoutr�strip)r*r+�processs&& r�_get_newest_process_for_userr8Ts`���n�n�	�$��d�C��H�d�3���
�	�G����Q��g�n�n�n���w�~�~�#�#�%�&�&r"c�R�V^8�dQhR\R\\\3,/#)rr+r)r�dictr)r s"rr!r!`s"����C��D��c��N�r"c��\RV4pVf/#\P!RV2\P\P,\P
,4p\PPV4p\P!T4RUu/uFpYC9gKYCT,bK	up# \d/u\P!T4#i;i \P!T4i;iuupi)z�Find D-BUS address and XDG_DATA_DIRS for the given user.

The D-BUS address and XDG_DATA_DIRS is needed for xdg-open. It is
incredibly hard, or alternatively, unsafe to funnel it through
pkexec/env/sudo, so grab it from gvfsd.
�gvfsd�/proc/)�DBUS_SESSION_BUS_ADDRESS�
XDG_DATA_DIRS)r8r$�open�O_RDONLY�O_PATH�O_DIRECTORY�apport�	fileutils�get_process_environ�OSError�close)r+�	gvfsd_pid�gvfsd_pid_fd�	gvfsd_envrs&    r�_get_users_environrL`s���-�W�c�:�I����	��7�7�
����b�k�k�B�I�I�5����F��L���$�$�8�8��F�	�	�����A��@�C���	��s�^��@�������	�
�������	������s0�&B=� D�-
D�=
C#�
C&�"C#�#C&�&C>c�$�V^8�dQhR\/#�rr��bool)r s"rr!r!|s��P�P�T�Pr"c��\\PPR4;'g \PPR44#)z:Check if a display server is specified in the environment.�DISPLAY�WAYLAND_DISPLAY)rPr$r%r�r"r�has_displayrU|s0����
�
���y�)�N�N�R�Z�Z�^�^�<M�-N�O�Or"�get_user_envFc�V�V^8�dQhR\\,R\R\RR/#)r�argsrV�kwargsrN)�listrrPr)r s"rr!r!�s0��%�%�
�s�)�%�&*�%�>A�%�	�%r"c��\R\R44pVe\4P4'g\P!V3RR/VBR#\
P!V4p\R4pVf
VPp\PP4UUu/uF)wrgVPR4'dKVR8wgK'WgbK+	pppV'dV\V4,pVPVR&\P!V3RRR	VR
VRVR\P!VPV4/VBR#uuppi)
aLCall subprocess.run as real user if called via sudo/pkexec.

If we are called through pkexec/sudo, determine the real user ID and
run the command with it to get the user's web browser settings.
If get_user_env is set to True, the D-BUS address and XDG_DATA_DIRS
is grabbed from a running gvfsd and added to the process environment.
�SUDO_UID�
PKEXEC_UIDNr0F�SUDO_GID�SUDO_�HOME�env�userr�extra_groups)r(r	�is_rootr2r3�pwd�getpwuid�pw_gidr$r%�items�
startswithrL�pw_dir�getgrouplist�pw_name)	rXrVrYr+�pwuid�gid�k�vras	&$,      r�run_as_real_userrq�s8���z�<��#=�
>�C�
�{�4�6�>�>�@�@����t�3�5�3�F�3���L�L���E�
�z�
"�C�
�{��l�l���J�J�$�$�&��&�D�A��|�|�G�$�	
�)*�l�):�	
���&���
��!�#�&�&���,�,�C��K��N�N�����
���	�
���_�_�U�]�]�C�8�
����s�%E�E�Ec���\P!\V4^4R# \d1pTP\P
8XdRp?R#Rp?R#Rp?ii;i)z8Check if the process with the given ID is still running.NFT)r$�killrrG�errno�ESRCH�r�errors& r�
still_runningrx�sK���
����C��!�������;�;�%�+�+�%��&����s� $�A�A�Ac	�
�\V\4'gQhVP4VP	4V'd�/p\VRR7;_uu_4p\
\VP4VR4V4RRR4VR,!W4pV'g#\PPRV4R#\PP\PPV44^,VR&V'g:R	V9d(\P,P/VR	,4pM\1R
4h\P,P3V4pV'dVP5V4VP7V4RV9Ed	VP?V4'd\"P$!^4R
V9d�R\P@9d�RV9dRV9d\CR4VR&M�\DPF!VR,PI4^,4'gj\DPJ!VR,PI4^,4'g2\CR4VR,PI4^,,VR&RV9dVPM4p
V
'dW�R&VPOR4R8XdRR\P@9d=VPQ4pV'd%\CR4RPSV4,VR&V'd�\VR4;_uu_4p\PT!V^4VPWVRR7RRR4\P,PYT4\PT!TR4R#R# \dEL�i;i +'giELQ;i \ d\"P$!^4EL�\&dP\PPRT4\(P*!4\"P$!^4ELQi;i \8dT'g	RT9dhEL�\:dp	\=T	4TR&Rp	?	ELRp	?	ii;i \8dT'g	RT9dhELi;i +'giELW;i \d,p	\PPRY4Rp	?	EL�Rp	?	ii;i)aaCollect information about report.

Encapsulate calls to add_*_info() and update given report, so that this
function is suitable for threading.

ui must be a HookUI instance, it gets passed to add_hooks_info().

If reportfile is not None, the file is written back with the new data.

If symptom_script is given, it will be run first (for run_symptom()).
�utf-8��encoding�execNr3z8symptom script %s did not determine the affected package�Symptomzsymptom script %s crashed:�ExecutablePathzAcalled without a package, and report does not have ExecutablePath�Snap�UnreportableReason�CrashDB�APPORT_DISABLE_DISTRO_CHECK�Packagez4This package does not seem to be installed correctlyz�This does not seem to be an official %s package. Please retry after updating the indexes of available packages, if that does not work then remove related third party packages and try again.�
DistroRelease�Title�ProblemType�Crash�APPORT_IGNORE_OBSOLETE_PACKAGESz�You have some obsolete package versions installed. Please upgrade the following packages and check if the problem still occurs:

%sz, �abT)�only_newzCannot update %s: %si�)-�
isinstancer�add_gdb_inforG�add_os_infor@r}�compile�readrD�loggingrwr$�path�splitext�basename�
StopIteration�sys�exit�	Exception�	traceback�	print_excrE�find_file_packager&�	find_snap�
add_snap_info�add_package_infor'�SystemErrorr�add_hooks_infor%�_�	packaging�is_distro_package�split�is_native_origin_package�standard_titler�obsolete_packages�join�chmod�write�mark_report_seen)r�
reportfile�package�ui�symptom_script�ignore_uninstalled�symb�f�snaprw�title�old_pkgss&&&&&&      r�thread_collect_infor��s�� �b�&�!�!�!�!�
�����
�������	��n�w�7�7�1��W�Q�V�V�X�~�v�>��E�8��5�k�&�-�G�����$�$�N�"��� "��� 0� 0����1A�1A�.�1Q� R�ST� U�F�9����v�%��&�&�8�8��@P�9Q�R�G��S��
�
���%�%�g�.�D�����T�"�
2�����(��6�)�� � ��$�$��H�H�Q�K�	���'�1����C��F�*�v�V�/C�34�N�4�F�/�0�#�4�4��9�%�+�+�-�a�0���#�<�<��9�%�+�+�-�a�0���
�.��!��1�7�7�9�!�<�=��/�0�&�f���%�%�'���#�7�O�	�
�
�=�!�W�,�-�R�Z�Z�?��+�+�-���+,�@�,��	�	�(�#�	,$�F�'�(��		L��j�$�'�'�1�����Q�'����Q���.�(�	���)�)�*�5�
����U�#���]�
�	
�
��8�7�7���	��H�H�Q�K��	��N�N� � �!=�~�N����!��H�H�Q�K�	��(��
"�f�F�&:����2�'*�5�z��#�$��2��D�	�
&�&��*>���
	��:(�'�'���	L�

�N�N� � �!7��K�K��	L�s��N6�O�&O�?O�AO�Q�8R �7R �97R �11R �5S�	+S�4S�6O�O�O	�	O�!Q�Q�	AQ�Q�R�/R�:R�R�R�R� R?�3R?�>R?�S	�
S�S�T�! T�Tc�Da�]tRtRtoRtRtRtRtRtRt	V3Rlt
RtVtR#)�ActioniDz�Action to take on a problem report.

Possible actions: examine the crash ('examine'), report the crash
('report'), restart the crashed application ('restart'), or ignore further
crashes ('ignore').
Fc�V<�V^8�dQh/S[;R&S[;R&S[;R&S[;R&S[;R&#)r�examine�ignore�rememberr�restartrO)r �
__classdict__s"�rr!�Action.__annotate__DsF�������
������
�����r"rTN)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�r�r�rr��__annotate_func__�__static_attributes__�__classdictcell__�r�s@rr�r�Ds,������G��F��H��F��G��r"r�c�a�]tRtRtoRtV3RlRltV3RlRltV3RlRlt]V3R	lR
l4t	V3RlRlt
]V3R
lRl4t]V3RlRl4tRaV3RlRllt
V3RlRltV3RlRltV3RlRltV3RlRlt]V3RlRl4tV3RlRlt]V3R lR!l4tV3R"lR#ltV3R$lR%ltV3R&lR'ltV3R(lR)ltV3R*lR+ltV3R,lR-ltV3R.lR/ltRbV3R0lR1lltV3R2lR3ltV3R4lR5ltV3R6lR7ltV3R8lR9lt V3R:lR;lt!V3R<lR=lt"V3R>lR?lt#V3R@lRAlt$RcV3RBlRCllt%V3RDlRElt&V3RFlRGlt'V3RHlRIlt(V3RJlRKlt)V3RLlRMlt*V3RNlROlt+V3RPlRQlt,V3RRlRSlt-V3RTlRUlt.V3RVlRWlt/V3RXlRYlt0V3RZlR[lt1V3R\lR]lt2V3R^lR_lt3R`t4Vt5R#)d�
UserInterfaceiTz�Apport user interface API.

This provides an abstract base class for encapsulating the workflow and
common code for any user interface implementation (like GTK, Qt, or CLI).

A concrete subclass must implement all the abstract ui_* methods.
c�4<�V^8�dQhRS[S[,RR/#)r�argvrN)rZr)r r�s"�rr!�UserInterface.__annotate___s���*�*�T�#�Y�*�4�*r"c��RVnRVnRVnRVnRVnRVnRVn\PPR4Vn\P !VP4VP#V4VnR# \d4p\PPR\T44Rp?LqRp?i\d#\PPR4L�i;i)z8Initialize program state and parse command line options.rDNFzDCould not import module, is a package upgrade in progress? Error: %sz8/etc/apport/crashdb.conf is damaged: No default database)�gettext_domainr�report_file�cur_package�
offer_restart�specified_a_pkg�upload_progressrD�crashdb�get_crashdb�ImportErrorr��fatalrr&r�
textdomain�
parse_argvrX)�selfr�rws&& r�__init__�UserInterface.__init___s���&���37���'+���'+���"���$���-1���	�!�>�>�5�5�d�;�D�L�	���4�.�.�/��O�O�D�)��	���	��N�N� � ���E�
�
�
��
�	��N�N� � �J�
�	�s#�$B�C8�)C�C8� C8�7C8c� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r�~s���"�"�T�"r"c��RpRVn\P!4^8Xd \PP4pM\PP
4pVFmpVPV4'gKVP'gQhVPR,R8XdVPV4MVPV4RpKo	V#)a�Present all currently pending crash reports.

Ask the user what to do about them, and offer to file bugs for them.

Crashes that occurred in a different desktop (logind) session than the
one that is currently running are not processed. This skips crashes
that happened during logout, which are uninteresting and confusing to
see at the next login.

Return True if at least one crash report was processed, False
otherwise.
FTr��Hang)r�r$�geteuidrDrE�get_new_system_reports�get_new_reports�load_reportr�finish_hang�	run_crash)r��result�reportsr�s&   r�run_crashes�UserInterface.run_crashes~s�����"���
�:�:�<�1���&�&�=�=�?�G��&�&�6�6�8�G��A��#�#�A�&�&���;�;�;��;��{�{�=�)�V�3�� � ��#����q�!��F���
r"c�$<�V^8�dQhRS[RR/#)rr�rN�r)r r�s"�rr!r��s���x�x�S�x�T�xr"c�~	�Wn\PPV4VP
'gVP
V4'gR#VP
'gQhRVP
9dR#VP
PR4R8Xd�RVP
9d�RVP
9d�RVP
9d�\PPVP
PR\R	444p\R
4V,p\R4pVP\R4V,VR
V24R#\PP4pVPV4pVP
'gVP'd"RVP
9dVP!4VP
fR#VP'dVP4R#VP"'dVP#4VP$'dVP
P'4VP('dVP+VP
4TP
'gR#RTP
9d8TP
R,R8wd \PP/T4TP0P3TP
4'dCTP54'dR#TP74'dR#TP94R#R# \dEL*i;i \,dL�i;i \:d?TP\R4\R44\<P>!^4R#\EdpTP@\@PB8Xd!\PDPGR4hTP@\@PH8Xd<TP\R4\R44\<P>!^4hTP@\@PJ8XdETP\R4\MTPN44\<P>!^4hRp?ii;i)z�Present and report a particular crash.

If confirm is True, ask the user what to do about it, and offer to file
a bug for it.

If confirm is False, the user will not be asked, and the crash is
reported right away.
N�Ignorer�r��Signal�CoreDump�
Stacktracerzunknown programz+Sorry, the program "%s" closed unexpectedlyzxYour computer does not have enough free memory to automatically analyze the problem and send a report to the developers.�
Problem in %s�

�_MarkForUpload�False�Invalid problem reportz2You are not allowed to access this problem report.zOut of memory, aborting�Errorz@There is not enough disk space available to process this report.)(r�rDrEr�rGrr�rr$r�r�r��ui_error_message�allowed_to_report�ui_present_report_detailsr��collect_infor�r��mark_ignorer��remember_send_reportr&�mark_report_uploadr��accepts�handle_duplicate�check_unreportable�file_report�PermissionErrorr�r�rt�ENOMEMr�r��ENOSPC�EIOr�strerror)r�r��subject�heading�footerr��responserws&&      rr��UserInterface.run_crash�s���'��j	�
�� � �1�1�+�>�
�;�;�;�t�'7�'7��'D�'D���;�;�;��;��4�;�;�&�������
�.�'�9�����+��d�k�k�1� ����3��'�'�*�*��K�K�O�O�$4�a�8I�6J�K����I�J�W�T���;���
�%�%��o�&��0�W�I�T�&��2J��� &� 0� 0� B� B� D���5�5�6G�H�H�����(�"2�"2�"2�#�4�;�;�6��%�%�'��{�{�"��������������������������'�'�)�
��$�$�$��-�-�h�o�o�>��?�?�?��!�D�K�K�/��K�K� 0�1�W�<�� � �3�3�K�@��|�|�#�#�D�K�K�0�0��(�(�*�*���*�*�,�,��� � �"�1��O�
��
��n�
��
��6�	��!�!��*�+��F�G�
�
�H�H�Q�K��	��{�{�e�l�l�*����$�$�%>�?�
�������,��%�%��g�J��=��������
�����	�	�)��%�%�a�(@�&A�3�u�~�~�CV�W��������	�s��M�M'�M'�M'�%M'�:CM'�AM'�M'�(/M'�M'�+M'�=M'�!M'�1M'�M�M�9M'�
A2M'�M'�M'�0M'�M�M'�M�M'�M$�!M'�#M$�$M'�'AR<�/	R<�9R<�:C=R7�7R<c�$<�V^8�dQhRS[RR/#)rr�rNr�)r r�s"�rr!r�s���-�-�s�-�t�-r"c��\PPV4\PPV4R#)z�Finish processing a hanging application after the core pipe handler
has handed the report back.

This will signal to whoopsie that the report needs to be uploaded.
N)rDrEr�r�)r�s&rr��UserInterface.finish_hangs,��	���+�+�A�.����)�)�!�,r"c�&<�V^8�dQhRS[RS[/#)rrr)rrP)r r�s"�rr!r�&s���+�+�C�+�D�+r"c��\PPR4VnVPPV4VPP4VPPR	R
4p\PPV4VnVPP4\PP!4pVP#WAR7pVP'dQ\PP%VPV4\&P(!V\*P,4M%\&P(!V\*P.4VP0'd"VP3V4VP14R# \d�p\T4R8XdATP
\R4\R44\P!^4Rp?EL�\T4R8Xd;TP
\R4\R44\P!^4Rp?ELRp?ii;i)
a�Report an application hanging.

This will first present a dialog containing the information it can
collect from the running application (everything but the trace) with
the option of terminating or restarting the application, optionally
reporting that this error occurred.

A SIGABRT will then be sent to the process and a series of
noninteractive processes will collect the remaining information and
mark the report for uploading.
r�zinvalid process�Invalid PIDz(The specified process ID does not exist.znot accessiblezNot your PIDz0The specified process ID does not belong to you.Nrr
)�	modal_forT)rDr�Report�
add_proc_infor'rr�r�r�r�r�rrEr�r�r�r�r��mark_hanging_processr$rs�signal�SIGABRT�SIGKILLr��wait_for_pid)r�rrwr�r�rs&&    r�run_hang�UserInterface.run_hang&s����m�m�*�*�6�2���
	��K�K�%�%�c�*�	
���$�$�&��{�{���/��4��!�+�+�=�=�d�C��������!�"�,�,�>�>�@���1�1�2C�1�S���?�?�?����1�1�$�+�+�s�C��G�G�C����(��G�G�C����(��������c�"��L�L�N���7�	��5�z�.�.��%�%��m�$�a�(R�&S���������U��/�/��%�%��n�%��H�I���������	�s�F!�!I�,A
I�<A
I�Ic�$<�V^8�dQhRS[RR/#�rrrN�r)r r�s"�rr!r�Ts�����#��$�r"c���\P!\V4^4\P!^4K: \d,pTP\P
8XdRp?R#hRp?ii;i)zswaitpid() does not work for non-child processes. Query the process
state in a loop, waiting for "no such process."
N)r$rsrrGrtru�time�sleeprvs& rr�UserInterface.wait_for_pidSsS��
�
�����C��!�$�

�J�J�q�M��	�
��;�;�%�+�+�-����
�s� ;�A1�A,�+A,�,A1c�$<�V^8�dQhRS[RR/#rr)r r�s"�rr!r�bs���*�*�s�*�t�*r"c�b�\P!\V4\P4R#)z!Kill process with signal SIGSEGV.N)r$rsrr�SIGSEGV)rs&r�	kill_segv�UserInterface.kill_segvas��	����C��&�.�.�)r"Nc�4<�V^8�dQhRS[R,RS[/#)rr�Nr�rrP)r r�s"�rr!r�fs#���}�}�S�4�Z�}�4�}r"c�p�VPP'gcVPP'gGV'g?VP4'dR#VP	\R4\R44R#\PPR4VnVPP'Ed?\P!RVPP2\P\P,\P,4p\P!R\PVR7p\P!VR	R
7;_uu_4pVP4P!4pRRR4\#X^,4pV\$,'dRVPnMLVPP'VPPVR
7MVPP54VPP'd4VPPP74VPnVPPR8Xd\8P:!4VnMVPPVnVP?V4TPC4'dR#TPE4TPG4'dR#TPRTPPJ'd�\PLPOTPPJ4pTPQR4'dF\RP!TR4;_uu_4pTPPUT4RRR4R#\\PLPOTPPJ4R4;_uu_4pTPPUT4RRR4R#Rp	TPWT	4p
T
P'dTPY4R# +'giEL�;i \(d)TP	\R4\R44R#\*\,3dVp\/TRR4\0P28XdRp?R#TP	\R4\R44Rp?R#Rp?ii;i \*d�pR\AT49d�R\AT49dzTP<'g-TP	\R4\R4T,4M5TP	\R4\R4TP<,4Rp?R#hRp?ii;i \HdEL�i;i +'giR#;i +'giR#;i \,d0pTP	\R4\AT44Rp?R#Rp?ii;i)aReport a bug.

If a pid is given on the command line, the report will contain runtime
debug information. Either a package or a pid must be specified; if none
is given, show a list of symptoms.

If a symptom script is given, this will be run first (used by
run_symptom()).
TzNo package specifiedzHYou need to specify a package or a PID. See --help for more information.F�Bugr=�stat)�dir_fdrzr{N�linux)r�proc_pid_fdzPermission deniedzfThe specified process does not belong to you. Please run this program as the process owner or as root.rtrz6The specified process ID does not belong to a program.r�zdoes not existr�z7Symptom script %s did not determine an affected packagezPackage %s does not exist�ProcCmdlinez.gz�wb�Cannot create report)-rXr�r�run_symptomsr�r�rDrrr$r@rArBrC�ior�r�r�
PF_KTHREADrrr'rG�getattrrt�ENOENT�add_proc_environr6r��get_kernel_packager�r�rr�add_extra_tagsrr&�saver��
expanduser�endswith�gzipr�r�r)r�r�r0�	stat_filer�r-�flagsrw�savefiler�rs&&         r�run_report_bug�UserInterface.run_report_bugfs����y�y� � � �������~�� � �"�"���!�!��(�)��8��
���m�m�*�*�5�1����9�9�=�=�=�!
� �g�g��T�Y�Y�]�]�O�,�b�k�k�B�I�I�.E����.V����G�G�F�B�K�K��L�	��W�W�Y��9�9�Q��6�6�8�>�>�+�D�:��D��G����:�%�%�(/�D�I�I�%��K�K�-�-� �I�I�M�M�{�.��.
�K�K�(�(�*��9�9���� $�	�	� 1� 1� 7� 7� 9�D�I�I���9�9����'�(�;�;�=�D��#�y�y�0�0�D��	����n�-�"�"�"�$�$������� � �"�"��	����M�*��9�9�>�>�>�	
M��7�7�-�-�d�i�i�n�n�=���$�$�U�+�+����8�T�2�2�a����)�)�!�,�3���b�g�g�0�0������@�$�G�G�1����)�)�!�,�H��!%���5�5�6G�H�H������ � �"��u:�9�9��#�
��%�%��)�*��M������(�	
��5�'�4�0�E�L�L�@�!��%�%��m�$��N�O����	
��.�	��C��J�&�+;�s�5�z�+I��'�'�'��)�)��2�3��S�T�(�)���)�)��2�3��5�6��9I�9I�I�����	��6�	��	��3�2���H�G����
M��%�%�a�(>�&?��U��L�L���
M�s��B-Q:�.Q&�
>Q:�1Q:�9T�
W�5A	W;�?W;�W�:W;�AW;�	W'�%W;�&Q7	�1	Q:�:/T�,T�;T�< T�"$T�T�V>�1V9�A!V9�8V9�9V>�W�W�W$	�W;�$W;�'W8	�2W;�8W;�;X5�$X0�0X5c� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r��s���]�]�4�]r"c
���VPPVPP4'g'VP	\R4\R44R#VPP
VPP4pV'g%VP\R44pV'gR#\PPR4Vn	VPP'd'VPPP4.pM/VPPVPP4pRpVFPpWPnWPPR&WPPR&\P !V4VP1RR
7RpKR	V'g'VP3\R4\R44R#VPP54VPP74VP94VPRVPR\=VP4^8Xd'VP3\R4\R44R#RpVP?V4pVP'dAVPPAVPPVPRVRR7R#R# \"dw\$P&P)\$P&P+\PP,RTR	244'g\/R
TR24EKEL�i;i \:dEL9i;i)z:Update an existing bug with locally collected information.zUpdating problem reportz�You are not the reporter or subscriber of this problem report, or the report is a duplicate or already closed.

Please create a new report using "apport-bug".FaHYou are not the reporter of this problem report. It is much easier to mark a bug as a duplicate of another than to move your comments and attachments to a new bug.

Subsequently, we recommend that you file a new bug report using "apport-bug" and make a comment in this bug about the one you file.

Do you really want to proceed?r,�
SourcePackager��source_�.pyzPackage z. not installed and no hook available, ignoringT)r�z$No additional information collected.�Datezapport information)�change_description�attachment_comment)!r��
can_updaterX�
update_reportr�r��is_reporter�ui_question_yesnorDrrr�r6�get_affected_packagesr�r��get_versionr'r$r��existsr��PACKAGE_HOOK_DIR�printr��ui_info_message�
add_user_infor9r;r&�lenr��update)r�rO�r�pkgs�info_collected�pr�rs&       r�run_update_report�UserInterface.run_update_report�s����|�|�&�&�t�y�y�'>�'>�?�?��!�!��+�,��P��
���l�l�.�.�t�y�y�/F�/F�G����&�&��P��	�A����m�m�*�*�5�1����9�9�����I�I�%�%�+�+�-�.�D��<�<�5�5�d�i�i�6M�6M�N�D����A� ��+,�K�K��(�%&�K�K�	�"�
��%�%�a�(�
�����6�!�N�#�&�� � ��+�,�a�0V�.W�
�����!�!�#����$�$�&�����
�K�K���	����O�,��t�{�{��q� �� � ��+�,�a�0V�.W�
��!���1�1�2C�D���?�?�?��L�L����	�	�'�'����$�#.�#7�
 �
����[�
��w�w�~�~��G�G�L�L����!?�!?�7�1�#�S�AQ�R����H�Q�C�'U�V�W��	�
��.�	��	�s+�6K�$
M�A)M�M�M�M+�*M+c� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r�Fs���1�1�d�1r"c
���\P!\PP\R44p.pVEFp\PPV4P
R4'dK:/p\VRR7;_uu_4p\\VP4VR4V4RRR4RT9d#\PPR	T4K�\PP#\PPT44^,pTP%TP'R
T4T34EK	V'gR#VP)4VP%R4TP+\-R4VUUu.uFwrxVNK		uppR4p	V	e]W)^,,^,p
V
'd=VP/\PP\V
R
,44R#R#R# +'giELb;i \d;\PPRT4\P !4EK)i;iuuppi)z\Report a bug from a list of available symptoms.

Return False if no symptoms are available.
z*.pyr�rzr{r}Nzsymptom script %s is invalidr3z0symptom script %s does not define run() function�descriptionFz+What kind of problem do you want to report?rIT)z
Other problemN)�globr$r�r��symptom_script_dirr�rir@r}r�r�r�rDr�rwr�r�r��appendr�sort�ui_question_choicer�rC)r��scripts�symptoms�scriptr�r��symptom_namerbr*�ch�symptoms&          rr4�UserInterface.run_symptomsFs���
�)�)�B�G�G�L�L�);�V�D�E��24���F��w�w����'�2�2�3�7�7��#%�D�
��&�7�3�3�q�������6�6�:�D�A�4��D� ����$�$�F�����7�7�+�+�B�G�G�,<�,<�V�,D�E�a�H�L��O�O�T�X�X�m�\�B�L�Q�R�'�*���
�
�����/�0�
�
$�
$�
�;�<�2:�;�(�.�[�[�(�;��
���>��!�u�o�a�(�G���#�#�B�G�G�L�L�1C�W�u�_�$U�V����E4�3�3���
����$�$�%C�V�L��#�#�%��
��(
<s7�:H"�&H�5H"�
I*�H�H"�H"�"AI'�&I'c�<�V^8�dQhRR/#�rrNrT)r r�s"�rr!r�ys���
$�
$�T�
$r"c�r�\PP\VPP
R,4p\PP
V4'gBVP\R4\R4VPP
,4R#VPV4R#)z#Report a bug with a symptom script.rIzUnknown symptomzThe symptom "%s" is not known.N)
r$r�r�rdrXrmrSr�r�rC)r�rjs& r�run_symptom�UserInterface.run_symptomys{�������0�$�)�)�2C�2C�e�2K�L���w�w�~�~�f�%�%��!�!��#�$��2�3�d�i�i�6G�6G�G�
�
����F�#r"c� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r��s���R"�R"�$�R"r"c��VPP'dVP4R#VPP'dqVPP'g'VP\
R4\
R44R#VP\VPP44#VPP'dVP4#VPPeVP4#VPP'd\\4R#VPP 'd)VP#VPP 4R#VPP('Ed<\*P,!R4R8Xd'VP\
R	4\
R
44R#VP/R\
R44\0P2!R
R.R\0P4\0P4R7pVP6^8XdK\VP8P;4R,4VPnVP4#VP\
R	4\
R4R,VP>PA4,4R#VPC4# \$d0pTP\
R4\'T44Rp?R#Rp?ii;i \<d)TP\
R	4\
R44R#i;i)z�Call appropriate run_* method according to command line arguments.

Return True if at least one report has been processed, and False
otherwise.
TzNo PID specifiedz;You need to specify a PID. See --help for more information.FNr��XDG_SESSION_TYPE�waylandr3a<The window option cannot be used on Wayland.

Please find the window's process ID and then run 'ubuntu-bug <process ID>'.

The process ID can be found by running the System Monitor application. In the Processes tab, scroll until you find the correct application. The process ID is the number listed in the ID column.r
z^After closing this message please click on an application window to report a problem about it.�xprop�_NET_WM_PID)r0r5�stderrz2xprop failed to determine process ID of the windowr����)"rXrmrr�hangingrr�r�rr�filebugrCrNr^�versionrU�__version__�
crash_filer�rGr�windowr$�getenvrVr2r3�PIPEr4r5r�r'rz�decoder�)r�rwrxs&  r�run_argv�UserInterface.run_argv�s����9�9����������9�9�����9�9�=�=�=��%�%��(�)��S�T����=�=��T�Y�Y�]�]�!3�4�4��9�9�����&�&�(�(��9�9�"�"�.��)�)�+�+��9�9�����+����9�9����
O����t�y�y�3�3�4���9�9�����y�y�+�,�	�9��%�%��,�-��D�
�
��� � ���H��
��N�N��-�(��!���!���	�E����1�$� �$'����(:�(:�(<�R�(@�$A�D�I�I�M��*�*�,�,��!�!��(�)��F�G����,�,�%�%�'�(�
�����!�!��k�
O��%�%�a�(@�&A�3�u�:�N�N���
O��J"� ��)�)��0�1��N�O�� � �s*�%K(�9L%�(L"�3$L�L"�%/M�Mc�J<�V^8�dQhRS[S[,RS[P/#�rr�r)rr�argparse�	Namespace)r r�s"�rr!r��s%�������
��(�2D�2D�r"c	�d�\P!\R4R7pVPRR\R4R7VPRR.R	\R
4R7VPRR
\R7VPVR,4pRVnRVnRVnRVn	RVn
V#)z=Parse command line options when being invoked in update mode.z%(prog)s <report number>��usage�-p�	--packagezSpecify package name.��help�--tagre�tags�@Add an extra tag to the report. Can be specified multiple times.��actionr�destr�rN�
report_number)�metavar�type��NNNF)r��ArgumentParserr��add_argumentr�
parse_argsrmr}r�r~r|)r��parserrXs&  r�parse_argv_update�UserInterface.parse_argv_update�s����(�(�q�1K�/L�M�����D�+�A�6M�4N��O���������U�V�	�	
�	���O�_�3��O�� � ��b��*������������������r"c�J<�V^8�dQhRS[S[,RS[P/#r�)rZrr�r�)r r�s"�rr!r��s)���S�S�t�C�y�S�X�-?�-?�Sr"c	��Rp\V4^8�d�R\P9dz\PP	\PPV^,4\PP
\PR,44V^&V^,pVPR4'gVPR4'dVPV4#VPR4'd\Pp\P!\R4R7pTPRR	R
RT;'g\R4R
7VPRRR
\R4R7TPRR\RT;'g\R4R7TPRRRT;'g\R4R7TPRRT;'g\R4R7TPR R!\T;'g\R"4R#7VPR$R
\R%4R7TPR&R'R(T;'g+\R)4\P P",R7VPR*R(\R+4R7VPR,R-.R.\R/4R07VPR1R2R
\R34R7VPR4R5\PR67VP%VR7,4pVP&pV=VP('dgVP*VP,VP.VP0VP2VP4.p\7V4'dVP9R84\V4^8Xd!XPR4'd
R9VnV#VfV#\PP;\PP	\<VR:,44'dR9VnWenV#VPR;4'gVPR<4'd	WenV#VP?4'dR9VnWenV#R=V9Ed8VPAR>4'd�\P PCVPER=4RH,4pV'gVP9VR?24M_VPGR@RA4'd*VP9VRBVRC,RDVR@,RE24MVP9VRBVRC,RF24\HPJ!^4MH\LPN!V4p	V	'g+VP9VRG24\HPJ!^4R9VnX	Vn(V#R9VnR9Vn)Wen(V#)IzpParse command line options.

If a single argument is given without any options, this tries to "do
what I mean".
N�APPORT_INVOKED_ASz-update-bugz-collectz-bugzI%(prog)s [options] [symptom|pid|package|program path|.apport/.crash file]r�z-fz
--file-bug�
store_truer}z�Start in bug filing mode. Requires --package and an optional --pid, or just a --pid. If neither is given, display a list of known symptoms. (Implied if a single argument is given.))r�r�r�z-wz--windowz7Click a window as a target for filing a problem report.)r�r�r.z--update-bugrNz;Start in bug updating mode. Can take an optional --package.)r�r�r�z-sz	--symptom�SYMPTOMzWFile a bug report about a symptom. (Implied if symptom name is given as only argument.))r�r�r�r�z�Specify package name in --file-bug mode. This is optional if a --pid is specified. (Implied if package name is given as only argument.)r�z-Pz--pidz�Specify a running program in --file-bug mode. If this is specified, the bug report will contain more information.  (Implied if pid is given as only argument.))r�r�z	--hangingz*The provided pid is a hanging application.�-cz--crash-file�PATHz�Report the crash from given .apport or .crash file instead of the pending ones in %s. (Implied if file is given as only argument.)z--savez�In bug filing mode, save the collected information into a file instead of reporting it. This file can then be reported later on from a different machine.r�rer�r�r�z-vz	--versionz Print the Apport version number.�issue�?)�nargsr�r�zL-u/--update-bug option cannot be used together with options for a new reportTrIz.crashz.apport�/z	/snap/binzv is provided by a snap. No contact address has been provided; visit the forum at https://forum.snapcraft.io/ for help.�contactr
z$ is provided by a snap published by �	developerz. Contact them via z
 for help.z`. No contact address has been provided; visit the forum at https://forum.snapcraft.io/ for help.z does not belong to a package.r{)*rXr$r%r�r��dirnamer�r>r�r��SUPPRESSr�r�r�rrDrE�
report_dirr�r�rNr}r�rmrr�r<�anyrwrSrd�isdigitrir�r�rr�r�r��get_file_packager�r�)
r�r��suppress�cmdr�rXr��args_only_for_new_reportsr��pkgs
&&        rr��UserInterface.parse_argv�s������t�9�q�=�"�b�j�j�0��'�'�,�,��G�G�O�O�D��G�,��G�G�$�$�R�Z�Z�0C�%D�E���Q���q�'�C��|�|�M�*�*�c�l�l�:�.F�.F��-�-�d�3�3��|�|�F�#�#�#�,�,���(�(��J��
��	�����������O��
	�	
�	�������L�M�		�	
�	������ ��P�P��N�O�
	�	
�	����������/��	�		
�	���������/��		�		
�	����������@��	�
	
�	������?�@�	�	
�
	�������*�*��@��
���)�)�*�	�	
�	������?��	�	
�	��������U�V�	�	
�	�������5�6�		�	
�	���G�3�X�5F�5F��G�� � ��b��*���
�
���J���������������������	�	�
)�%��,�-�-����5���t�9��>�c�l�l�6�2�2��D�L��K��=��K��7�7�>�>�"�'�'�,�,�'9�5�5�=�I�J�J��D�L� �L�d��_�^�^�H�
%�
%����	�)B�)B�#�O�\��W�]�]�_�_��D�L��H�R��M�E�\�����,�,��'�'�1�1�%�+�+�c�2B�2�2F�G����L�L� �'�"A�B��
�X�X�i��,�,��L�L� �'�"� ��-�.�/ � $�Y��0�
�<���L�L� �'�"� ��-�.�/D�E��������0�0��7����L�L�E�7�*H�!I�J��H�H�Q�K��D�L��D�L���	 �D�L�#'�D� � �L��r"c�&<�V^8�dQhRS[RS[/#)r�sizer)rr)r r�s"�rr!r��s���I�I�c�I�c�Ir"c���VR8d\P!RVR,4#VR8d\P!RVR,4#\P!RV\R4,4#)zCFormat the given integer as humanly readable and i18n'ed file
size.i@Bz%.1f KBg@�@iʚ;z%.1f MBg��.Az%.1f GB)�locale�
format_string�float)r�s&r�format_filesize�UserInterface.format_filesize�s_���'�>��'�'�	�4�&�=�A�A��*���'�'�	�4�)�3C�D�D��#�#�I�t�e�J�6G�/G�H�Hr"c� <�V^8�dQhRS[/#rNr)r r�s"�rr!r��s���
�
�3�
r"c��VP'gQh^pVPF+pWPV,P4,
pK-	V# \d(T\TPT,4,
pKbi;i)z'Return the size of the complete report.�r�get_on_disk_sizerrX�r�r�ros&  r�get_complete_size�UserInterface.get_complete_size�sp���{�{�{��{������A�
,����A��7�7�9�9���
���"�
,���D�K�K��N�+�+��
,�s�'A�.B�Bc� <�V^8�dQhRS[/#rNr)r r�s"�rr!r��s�����#�r"c�$�VP'gQh^pVPF4pVR8wgKWPV,P4,
pK6	V# \d(T\TPT,4,
pKki;i)z&Return the size of the reduced report.r�r�r�s&  r�get_reduced_size�UserInterface.get_reduced_size�sw���{�{�{��{������A��J��0��K�K��N�;�;�=�=�D�����&�0��C����A��/�/�D�0�s�'A�.B�Bc� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r��s���&�&�T�&r"c��VP'dRVP9dR#\P!R4fR#VP4#)z�Check whether to offer the "Examine locally" button.

This will be true if the report has a core dump, apport-retrace is
installed and a terminal is available (see ui_has_terminal()).
r�Fzapport-retrace)r�shutil�which�ui_has_terminal�r�s&r�can_examine_locally�!UserInterface.can_examine_locally�s=���{�{�{�j����;���<�<�(�)�1���#�#�%�%r"c�<�V^8�dQhRR/#rprT)r r�s"�rr!r��s������r"c
�f�VP'dRVP9gQh\P!4^8Xdr\P!4\P!RRRVPPRVPR,44\P!^4R#R#)zReopen the crashed application.r1�shr��RespawnCommandN)rr$�fork�setsid�execlprr�r�r�s&rr��UserInterface.restart�su���{�{�{�}����;�;�;�
�7�7�9��>��I�I�K��I�I��������� 0�$�+�+�m�2L�M�	
�
�H�H�Q�K�r"c�<�V^8�dQhRR/#rprT)r r�s"�rr!r�s���0�0��0r"c�.�VP'gQhVP\R4\R4\R4\R4VP,.R4pVfR#\PPR4pRVR	2pR
pRVPP
RR4,R,p^VR
,V,^VR
,V,^VR,V,R,V,/pVPWa^,,4R#)zLocally examine crash report.zJThis will launch apport-retrace in a terminal window to examine the crash.zRun gdb sessionz1Run gdb session without downloading debug symbolsz)Update %s with fully symbolic stack traceFNz~/.cache/apport/retracezapport-retrace -S system -C z -v zapport-retrace �'z'\''z--gdb z	--output � )r�rgr�r$r�r=�replace�ui_run_terminal)r�r�	cache_dir�retrace_with_download�retrace_no_download�filearg�cmdss&      rr��UserInterface.examines���������*�*�
�)�
�
�#�$��E�F��=�>��AQ�AQ�Q�	
�
�
������G�G�&�&�'@�A�	�">�y�k�� N��/����(�(�0�0��g�>�>��D��
�$�x�/�'�9�
�"�X�-��7�
�$�{�2�W�<�s�B�W�L�
��	
���T�1�+�.�/r"c�$<�V^8�dQhRS[RR/#)r�send_reportrNrO)r r�s"�rr!r�(s���'�'��'��'r"c�`�\P!RRRRRRRRR	\V4P4.
4\P!.RO4R
# \\P
3d@p\
R
4pTP\
R4TR\T424R
p?R
#R
p?ii;i)z#Put whoopsie in auto or never mode.�/usr/bin/gdbus�call�-y�-d�com.ubuntu.WhoopsiePreferences�-o�/com/ubuntu/WhoopsiePreferences�-mz/com.ubuntu.WhoopsiePreferences.SetReportCrasheszLSaving crash reporting state failed. Can't set auto or never reporting mode.z*Can't remember send report status settingsr�N)
r�r�r�r�r�r�r�r�z<com.ubuntu.WhoopsiePreferences.SetAutomaticallyReportCrashes�true)r2�check_outputr�lowerrG�CalledProcessErrorr�r�)r�r�rw�msgs&&  rr��"UserInterface.remember_send_report(s���%	��#�#�$����4��5��E���$�*�*�,��

�
�#�#��

����6�6�7�	��;��C�
�!�!��>�?��%�t�C��J�<�(�
�
��	�s�AA�B-�.4B(�(B-c� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r�Qs���&�&�d�&r"c��VPeRVP9dR#VPR,P4PR4'ds\P!VPR,4p\V\4'gQhRV9gQh\PPRT4TnR#\PPRVPR,4VnR# \\\3d2pRTPR,RT2TPR&Rp?R	#Rp?ii;i \\3d)R
TPR,R2TPR&R#i;i \\3d)R
TPR,R2TPR&R	#i;i)z+Process reports' CrashDB field, if present.Nr�T�{rz=A package hook defines an invalid crash database definition:
�
r�Fz@A package hook wants to send this report to the crash database "z" which does not exist.)r�lstripri�ast�literal_evalr�r:�AssertionError�SyntaxErrorr'rDr��load_crashdbr�r&r�)r��specrws&  r�check_report_crashdb�"UserInterface.check_report_crashdbQs����;�;��)�4�;�;�">���;�;�y�!�(�(�*�5�5�c�:�:�	
��'�'����I�(>�?��!�$��-�-�-�-���~�%�~�
�%�~�~�:�:�4��F���(�
�%�~�~�9�9�$����I�@V�W�����7#�K��<�
�%�%)�[�[��%;�$<�B�u�g�G����0�1���
�� ��*�
�"�"&�+�+�i�"8�!9�:-�.����0�1�$�'
�� ��*�
�"�"&�+�+�i�"8�!9�:-�.����0�1�
�

�s=�AD�#%E
�6F	�E
�&E�E
�
5F�F�	5G�Gc�^<�V^8�dQhRS[R,RS[RS[.R3,R,RR/#)rr�Nr��on_finishedr)rrPr)r r�s"�rr!r�ysK���o�o��d�
�o�!�o��b�$�h�'�$�.�	o�

�or"c
�6�VP'gQhRVPR&VPPR4R8XdRVP9g2VPPR4R8wd#RVP9dV'dV!4R#VPPR4R8XEdVPPRR	4p\PP	V4'gL\R
4pV'dVRVPR,R2pWPPR
&V'dV!4R#RVP9dy\PP	VPR,4'gC\R
4pVRVPR,R2VPR
&V'dV!4R#VPP
4pVe�VPR\\P!VPR,4P4pWg8wdBRVPR&\R4VPR,,VPR
&R#VP'g6RVP9d%V'gVPP4EM)VP4VPPVP4'd
\V4pM
\!4pRVP9Ed\P"P%4p	\&P(P)\*RVPVP,VPVVV3R7p
V
P/4V
P14'd$VP34VP54K9V
P=4\P"P?4\P"PAV	4V
PC4RVP9EdYRVP9EdGRVPR,9d^.pM`VPW\R4\R4VPR,,\R4VPR,,.R4pV^.8XdKVPRR VP9dVPR R!VP9dVPR!MxV^.8XdKVPRR"VP9dVPR"R#VP9dVPR#M&VPY4\8P:!^4RVP9dUR#VP9dDVPP[VPP]R#4P_R$44RVP9d�R"VP9d�R%VP9d�R
VP9d�VP`'d�\&PbPeVP4p
V
PR&R	4'd9\R'4V
R(,V
R),V
R&,3,VPR
&M/\R*4V
R(,V
R),3,VPR
&RVPR&R
VP9gVPg4'g"VPY4V'dV!4R#VPPR4R+8Xg2VPPR4R,8XgRVP9d�\&P(P)VPPhVPPk43R-7pVP/4VP14'd%VP34VP=R.4K:VPC4VPm4'dVPm4VPR/&VPPR4R08wd�\&P(P)VPPnVP3R-7pVP/4VP14'd%VP34VP=R.4K:VPC4VPm4pVe&VR1JdR2VPR/&MVVPR/&\&P(P)VPPpR37pVP/4VP14'd%VP34VP=R.4K:VPC4VPY4R
VP9d�R!VP9dRVP9gCVPPRR	4PsR44'grRVP9daVPu4'gKVPw\R54\R644VPy4\8P:!^4V'd
V!4R#R# \6d\8P:!^4EK�i;i \D\F\HPJ3dCp\R4pTR\MT42TPR
&RTPR&Rp?ELPRp?i\Nd=R
TP9d(\R4TPR
&RTPR&EL�\Pdsp\&PRPKR\MT44\R4R,\UT4,TPR
&RTPR&Rp?ELRp?ii;i \6d\8P:!^4EKji;i \D\F\HPJ3d4p\R4pTR\MT42TPR
&Rp?ELqRp?ii;i \6d\8P:!^4EK�i;i \6d\8P:!^4EK]i;i)7aCollect additional information.

Call all the add_*_info() methods and display a progress dialog during
this.

In particular, this adds OS, package and gdb information and checks bug
patterns.

If a symptom script is given, this will be run first (used by
run_symptom()).
�Truer�r�r�r��DependenciesNrr
zIThis problem report applies to a program which is not installed any more.z (�)r��InterpreterPath�ExecutableTimestampr�zPThe problem happened with the program %s which changed since the crash occurred.r�)�targetr*rX�7This problem report is damaged and cannot be processed.r�z5This report is about a package that is not installed.z%szBAn error occurred while attempting to process this problem report:r�r�z(not installed)zcYou have two versions of this application installed, which one do you want to report a bug against?z%s snapz%s deb packageF�PackageArchitecturerG�
SnapSource�SnapTagsr��SnapGitNamer�zG%s is provided by a snap published by %s. Contact them via %s for help.r*r�z�%s is provided by a snap published by %s. No contact address has been provided; visit the forum at https://forum.snapcraft.io/ for help.�KernelCrash�
KernelOops�rrX皙�����?�_KnownReportr,T�1)r�Kernelr�z7Could not determine the package or source package name.)=rrr$r�rSr��get_executable_timestamprr-�st_mtimer�r��!ui_start_info_collection_progressr�r�rrr%�copyrD�REThreadr�r��start�is_alive�!ui_pulse_info_collection_progress�
process_event�KeyboardInterruptr�r�r��clearrY�	exc_raiserG�EOFError�zlibrw�reprr'r�r�rrg� ui_stop_info_collection_progress�add_tags�popr�r�rEr�r�search_bug_patterns�get_bugpattern_baseurl�return_value�known�	anonymizeri�_is_snapr��ui_shutdown)r�r�r�r	�exe_pathr��	orig_time�cur_time�hookui�orig_env�icthreadrw�resr��bpthread�known_thread�val�anonymize_threads&&&&              rr��UserInterface.collect_infoysF
��(�{�{�{��{�(.����$�%�
�K�K�O�O�M�*�g�5�,�$�+�+�:U��K�K�O�O�M�*�g�5�.�D�K�K�:W���
���;�;�?�?�=�)�W�4��{�{���'7��<�H��7�7�>�>�(�+�+��8���� �E��D�K�K�0@�$A�#B�!�D�C�47���0�1���M�� �D�K�K�/��w�w�~�~�d�k�k�2C�&D�E�E��<��C�
�%�r�$�+�+�.?�"@�!A��C��K�K� 4�5�#�#�
���K�K�8�8�:�	�� ����1�2��2�7�7�4�;�;�/?�#@�A�J�J�K�H��$�07����,�-��C���k�k�"2�3�	4����0�1��� � � � ����3�"�
�K�K�#�#�%�
�2�2�4��|�|�#�#�D�K�K�0�0�����-�/���4�;�;�.��:�:�?�?�,��!�?�?�3�3�.�.�����(�(��(�(��&�*�
�4������ ��'�'�)�)��:�:�<�$��,�,�.��
�
���
�
� � �"��
�
�!�!�(�+�<��&�&�(�2����$��d�k�k�)A�$����I�(>�>�./�C�C��1�1��.���i�L�4�;�;�v�+>�>��.�/�$�+�+�i�2H�H����C��1�#�:����I�.�,����;� �K�K�(=�>�&�$�+�+�5� �K�K��8���Q�C�Z����F�+�#�t�{�{�2� �K�K��5�!�T�[�[�0� �K�K�
�3���9�9�;��H�H�Q�K�����$��t�{�{�)B����$�$�T�[�[�_�_�Z�%@�%F�%F�s�%K�L��$�+�+�%� ����3�
�T�[�[�8X�(����;��(�(�(��'�'�1�1�$�2B�2B�C���8�8�I�r�*�*�89�9�9��f��t�K�'8�$�y�/�J�9K�D�K�K� 4�5�
9:�D�9��f��t�K�'8�9�	9:�D�K�K� 4�5�
18����,�-�#�t�{�{�2�$�:S�:S�:U�:U��5�5�7���M�������
�.�-�?��;�;�?�?�=�1�\�A�����+�!�?�?�3�3��;�;�:�:��,�,�=�=�?�A�4������ ��'�'�)�)��:�:�<�$� �
�
�c�*�R��&�&�(�
�(�(�*�*�2:�2G�2G�2I�D�K�K��/��{�{���}�-��6�%���7�7��<�<�-�-�T�[�[�N� 8� ���"�"�$�"�+�+�-�-��:�:�<�$�$�)�)�#�.��&�&�(�"�/�/�1���?��d�{�69����N�3�69����N�3� &���7�7�t�{�{�?T�?T�7�U���"�"�$�"�+�+�-�-��6�6�8� �$�)�)�#�.�
�&�&�(��1�1�3�$�4�;�;�6�(�t�{�{�:�*�$�+�+�=�!�K�K�O�O�M�2�>�I�I�(�S�S�%�T�[�[�8��-�-�/�/��)�)��2�3��S�T���$�$�&��H�H�Q�K���M���s-�$�������$�� ��4�:�:�6�<��U�V�C�;>�%�t�D��K�=�8Q�D�K�K� 4�5�4;�D�K�K� 0�1��!�@�+�4�;�;�>�<=�S�=����$8�9�9@����$4�5�� �
<��N�N�(�(��t�E�{�;��;��!�	!�
�e�*�%��K�K� 4�5�5<�D�K�K� 0�1��
<��B-�$�������$�� ��4�:�:�6�R��U�V�C�;>�%�t�D��K�=�8Q�D�K�K� 4�5��R��"-�$�������$��$)� ��H�H�Q�K�K� �s��k<�"l%�,q
�q3�s	�!s2�<!l"�!l"�% q�7n�q�9q�q�q�A'q�q�
!q0�/q0�3 s�(s�s�	!s/�.s/�2!t�tc� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r��s���D�D�$�Dr"c�v�VP'gQhRVP9;'gRVP9#)rr�)rr�s&rr4�UserInterface._is_snap�s0���{�{�{��{��t�{�{�*�C�C�f����.C�Cr"c�$<�V^8�dQhRS[RR/#)r�urlrNr�)r r�s"�rr!r��s���>�>�C�>�D�>r"c�:�\RV.RR7R# \d(\P!T^RR7'dR#RpM!i;i \dpRT2pRp?MRp?ii;i\R4p\R	4T,pTP
YET,4R#)
zZOpen the given URL in a new browser window.

Display an error dialog if everything fails.
zxdg-openT)rVN)�new�	autoraiser
r�zUnable to start web browserz'Unable to start web browser to open %s.)rqrG�
webbrowserr@r�r�r�)r�rF�
error_detailsrwr��messages&&    r�open_url�UserInterface.open_url�s���

	)�
#� �*�c�!2��F����
#��?�?�3�A��>�>�� "�
�	
#��
�	)� ���L�M��	)���/�0���=�>��D�����e�}�%<�=s8��)A�A	�A�A	�A�A	�	A#�A�A#c�<�V^8�dQhRR/#rprT)r r�s"�rr!r��s���O�O�T�Or"c	�Taa�SP'gQhSPPSP4'gR#SPPR4SPPR48XdSPRSPRRSnV3Rlp\P!4oRV3Rllp\SP4F)pVPR4'gKSPVK+	SP4\PPSPPSPW3R	7pVP4VP4'dfSP!SP
4SPR
RR7wrVpSP#WV4VP%4VP'4K{VP'4TPA4p
SPC4SPPESPT
4pT'dSPGT4R#R# \dEL�i;i \dEL�i;i \P(dEK+i;i \*d\,P.!^4L�\0P2\4P6P83d@p\;R
4p	SP=\;R4T	R\?T424Rp?R#Rp?ii;i)zGUpload the current report and guide the user to the reporting
web page.Nr�Architecture�StacktraceAddressSignaturec�6<�\V4V,SnR#�N)r�r�)�sent�totalr�s&&�r�progress_callback�4UserInterface.file_report.<locals>.progress_callback�s���#(��;��#6�D� r"c�4�V^8�dQhR\R\RR/#�rr�r1rNr�)r s"rr!�/UserInterface.file_report.<locals>.__annotate__�s!��	%�	%�C�	%�s�	%�t�	%r"c�x<�\P!4pSPWV34VP4R#rT)�	threading�Event�put�wait)r�r1�message_displayed�
message_queues&& �r�message_callback�3UserInterface.file_report.<locals>.message_callback�s0��� )��� 1�����u�,=�>�?��"�"�$r"r�rTr)�block�timeoutzHCannot connect to crash database, please check your Internet connection.zNetwork problemr�)$rr�r�rr&r��queue�SimpleQueuerZri�ui_start_upload_progressrDr!�uploadr"r#�ui_set_upload_progressrV�setr(�Emptyr&r�r��smtplib�SMTPConnectError�urllibrw�URLErrorr�r�rr1�ui_stop_upload_progress�get_comment_urlrM)
r�rWrcro�upthreadr�r1�
msg_displayedrwr��ticketrFrbs
f           @rr�UserInterface.file_report�s�����{�{�{��{��|�|�#�#�D�K�K�0�0���;�;�?�?�0�1�T�[�[�_�_�^�5T�T�
��K�K� 5�6�	����8�9� $���	7�
����	�	%�	%��d�k�k�"�A��|�|�C� � ��K�K��N�#�	
�%�%�'��?�?�+�+��<�<�&�&��+�+�0�C�,�
��	����	��#�#�%�%��+�+�D�,@�,@�A��1>�1B�1B�"�C�2C�2�.�E���(�(��5�!�%�%�'��&�&�(�
��� ��&�&�(���$�$�&��l�l�*�*�4�;�;��?����M�M�#�����
��
���	��	��L�{�{�����!�	��H�H�Q�K��(�(�&�,�,�*?�*?�@�	��:��C�
�!�!�!�$5�"6�3�%�t�C��J�<�8P�Q���
	�ss�>
I�
I(�(J�>J�AI:�!J�I%�$I%�(I7�6I7�:J�J�J�J�!L'�:,L'�'L'�(4L"�"L'c�&<�V^8�dQhRS[RS[/#)rr�rr*)r r�s"�rr!r�s���*�*��*��*r"c	��\PP4Vn\VR4;_uu_4pVPP	VRR7RRR4RVP9d\R4hR
TP9d0TPR
,P#4^,TnR#\P&P)TPP+RR44TnR# +'giL�;i \d0RTnTP\R4\R44R	#\dApRTnTP\R
4\TP44Rp?R	#Rp?i\\
\\P3dGpRTn\R4pTP\R
4TR\!T424Rp?R	#Rp?ii;i)z�Load report from given path and do some consistency checks.

This might issue an error message and return False if the report cannot
be processed, otherwise self.report is initialized and True is
returned.
�rb�
compressed)�binaryNr�z+Report does not contain "ProblemType" fieldzMemory exhaustionzEYour system does not have enough memory to process this crash report.Fr�rr�r�rr
T)rDrrr@�loadr'�MemoryErrorr�r�rGrr�	TypeErrorrr*rwr+r�r�rEr�r)r�r�r�rwr�s&&   rr��UserInterface.load_reports���	� �-�-�.�.�0�D�K��d�D�!�!�Q���� � ��<� �8�"��D�K�K�/� �!N�O�O�0�0����#�#�{�{�9�5�;�;�=�a�@�D���	 &�/�/�A�A������ 0�"�5� �D���C"�!���		��D�K��!�!��%�&��5��
���	��D�K��!�!�!�$<�"=�s�5�>�>�?R�S����:�~�t�z�z�B�	��D�K��M�N�C��!�!��*�+��u�D��e��
�-F�
���
	�sL�7D�C<�$D�<D	�D�6G;�G;�G;�5F
�
&G;�4G;�5;G6�6G;c� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r�Bs�����D�r"c�X�VP'gQhVPPVP4'gR#RVP9d�\VPR,\4'd0VPR,PR4VPR&RVP9d:\
R4VPR,P4^,,pMRpVPV\
R4VPR,,4R#R#)	z^Check if the current report is unreportable.

If so, display an info message and return True.
Fr��UTF-8r�r�r
z#The problem cannot be reported:

%sT)	rr�r�r��bytesr�r�r�rV)r�r�s& rr� UserInterface.check_unreportableBs���
�{�{�{��{��|�|�#�#�D�K�K�0�0���4�;�;�.��$�+�+�&:�;�U�C�C�48�K�K�(�5��&��/����0�1��D�K�K�'��/�*�T�[�[��-C�-I�-I�-K�A�-N�N����� � ���9�:��+�+�2�3�4�
�
�r"c�D<�V^8�dQhRS[S[S[3,R,/#rp)r:r)r r�s"�rr!r�[s!�����4��S��>�D�#8�r"c	���VP'gQhRVP9dK\PPVPR,4'dVPR,pM*\P
P
VP4pV'gR#\P!RRR7pVPVRR7TP#R
4'gR#\%TP'R
44pRT9dR#T# \dR#i;i \Pd;p\PPRTR\!T4R	24Rp?R#Rp?ii;i)zzReturn a .desktop info dictionary for the current report.

Return None if report cannot be associated to a .desktop file.
�DesktopFileNF)�
interpolation�strictr�r{z	Warning! z is broken: r�z
Desktop Entryr*)rr$r�rSrDrE�find_package_desktopfiler�r'�configparser�ConfigParserr�r�r�rzr�r�has_sectionr:rh)r��desktop_file�cprwr�s&    r�get_desktop_entry�UserInterface.get_desktop_entry[s$��
�{�{�{��{��D�K�K�'�B�G�G�N�N�4�;�;�}�;U�,V�,V��;�;�}�5�L�
�%�/�/�H�H��$�$� ����
�
&�
&�T�%�
H��	��G�G�L�7�G�3��~�~�o�.�.���b�h�h��/�0�������
��#�
��
���!�!�	��J�J���y���l�3�u�:�,�b�Q�R���	�s*�1)D�=D �D�D� E/�5/E*�*E/c� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r�{s��� � �$� r"c���VP'gQhVPPVP4'gR#RVP9dR#VPR,PR4'dIVP	\R4\R44VP
VPR,4R#VP	\R4\R44R#)z�Check if current report matches a bug pattern.

If so, tell the user about it, open the existing bug in a browser, and
return True.
Fr�httpzProblem already knownz�This problem was already reported in the bug report displayed in the web browser. Please check if you can add any further information that might be helpful for the developers.z;This problem was already reported to developers. Thank you!T)rr�r�rirVr�rMr�s&rr�UserInterface.handle_duplicate{s����{�{�{��{��|�|�#�#�D�K�K�0�0������,���;�;�~�&�1�1�&�9�9�� � ��)�*��A��
�
�M�M�$�+�+�n�5�6��
� � ��)�*��O�P�
�
r"c�<�V^8�dQhRR/#rprT)r r�s"�rr!r��s���1�1��1r"c���VP'gQhVPP'd2VPPVPP4R#R#)z6Add extra tags to report specified with --tags on CLI.N)rrXr�r-r�s&rr;�UserInterface.add_extra_tags�s<���{�{�{��{��9�9�>�>�>��K�K� � ������0�r"c�:<�V^8�dQhRS[RS[R,RS[/#)rr�rNr)rPrr�)r r�s"�rr!r��s.���T�T�!%�T�9<�t��T�	�Tr"c��\R4h)z�Show details of the bug report.

Return the action and options as an Action object:

- Valid attributes are: report the crash ('report'), restart
  the crashed application ('restart'), or ignore further crashes
  ('ignore').
�.this function must be overridden by subclasses��NotImplementedError)r�r�rs&&&rr��'UserInterface.ui_present_report_details�s��"�"R�S�Sr"c�*<�V^8�dQhRS[RS[RR/#rZr�)r r�s"�rr!r��s'���T�T�S�T��T��Tr"c��\R4h)z:Show an information message box with given title and text.r�r��r�r�r1s&&&rrV�UserInterface.ui_info_message����!�"R�S�Sr"c�*<�V^8�dQhRS[RS[RR/#rZr�)r r�s"�rr!r��s'���T�T�c�T��T��Tr"c��\R4h)z4Show an error message box with given title and text.r�r�r�s&&&rr��UserInterface.ui_error_message�r�r"c�<�V^8�dQhRR/#rprT)r r�s"�rr!r��s���T�T�4�Tr"c��\R4h)z}Open a indefinite progress bar for data collection.

This tells the user to wait while debug information is being
collected.
r�r�r�s&rr�/UserInterface.ui_start_info_collection_progress����"�"R�S�Sr"c�<�V^8�dQhRR/#rprT)r r�s"�rr!r��s���T�T�4�Tr"c��\R4h)zQAdvance the data collection progress bar.

This function is called every 100 ms.
r�r�r�s&rr$�/UserInterface.ui_pulse_info_collection_progress����
"�"R�S�Sr"c�<�V^8�dQhRR/#rprT)r r�s"�rr!r��s���T�T�$�Tr"c��\R4h)z,Close debug data collection progress window.r�r�r�s&rr,�.UserInterface.ui_stop_info_collection_progress�r�r"c�<�V^8�dQhRR/#rprT)r r�s"�rr!r��s���T�T�$�Tr"c��\R4h)zkOpen progress bar for data upload.

This tells the user to wait while debug information is being uploaded.
r�r�r�s&rri�&UserInterface.ui_start_upload_progress�r�r"c�2<�V^8�dQhRS[R,RR/#)r�progressNr)r�)r r�s"�rr!r��s#���T�T�u�t�|�T��Tr"c��\R4h)z�Update data upload progress bar.

Set the progress bar in the debug data upload progress window to the
given ratio (between 0 and 1, or None for indefinite progress).

This function is called every 100 ms.
r�r�)r�r�s&&rrk�$UserInterface.ui_set_upload_progress�s��"�"R�S�Sr"c�<�V^8�dQhRR/#rprT)r r�s"�rr!r��s���T�T��Tr"c��\R4h)z(Close debug data upload progress window.r�r�r�s&rrr�%UserInterface.ui_stop_upload_progress�r�r"c�<�V^8�dQhRR/#rprT)r r�s"�rr!r��s�����T�r"c��R#)zTCalled right before terminating the program.

This can be used for for cleaning up.
NrTr�s&rr5�UserInterface.ui_shutdown�s�r"c� <�V^8�dQhRS[/#rNrO)r r�s"�rr!r��s���T�T��Tr"c��\R4h)z`Check for a terminal window.

Check if a terminal application is available and can be launched.
r�r�r�s&rr��UserInterface.ui_has_terminal�r�r"c�$<�V^8�dQhRS[RR/#)r�commandrNr�)r r�s"�rr!r��s���T�T�s�T�t�Tr"c��\R4h)z|Run command in a terminal window.

Run given command in a terminal window; raise an
exception if terminal cannot be opened.
r�r�)r�r�s&&rr��UserInterface.ui_run_terminal�r�r"c�4<�V^8�dQhRS[RS[R,/#�rr1rNr*)r r�s"�rr!r��s#���T�T�c�T�d�T�k�Tr"c��\R4h)z|Show a yes/no question.

Return True if the user selected "Yes", False if selected "No" or
"None" on cancel/dialog closing.
r�r��r�r1s&&rrP�UserInterface.ui_question_yesno�r�r"c	�`<�V^8�dQhRS[RS[S[,RS[RS[S[,R,/#)rr1�options�multiplerN)rrZrPr)r r�s"�rr!r�s@���T�T��T�"&�s�)�T�7;�T�	
�c��T�	�Tr"c��\R4h)a=Show an question with predefined choices.

options is a list of strings to present. If multiple is True, they
should be check boxes, if multiple is False they should be radio
buttons.

Return list of selected option indexes, or None if the user cancelled.
If multiple == False, the list will always have one element.
r�r�)r�r1r�r�s&&&&rrg� UserInterface.ui_question_choices��"�"R�S�Sr"c�4<�V^8�dQhRS[RS[R,/#r�r�)r r�s"�rr!r�s#���T�T�S�T�S�4�Z�Tr"c��\R4h)z]Show a file selector dialog.

Return path if the user selected a file, or None if cancelled.
r�r�r�s&&r�ui_question_file�UserInterface.ui_question_filer�r")	rXr�r�r�r�rr�r�r�rT)NFN)TN)6r�r�r�r�r�r�r�r��staticmethodr�rrr'rCr^r4rrr�r�r�r�r�r�r�r�r�r�rr�r4rMrr�rr�rr;r�rVr�rr$r,rirkrrr5r�r�rPrgr�r�r�r�s@rr�r�TsF�����*�*�>"�"�Hx�x�t�-��-�+�+�Z�����*��*�}�}�B]�]�~1�1�f
$�
$�R"�R"�p����*S�S�j�I��I�
�
���&�&���0�0�B'�'�R&�&�Po�o�b	D�D�>�>�.O�O�b*�*�X��2��@ � �D1�1�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T���T�T�T�T�T�T�T�T�T�Tr"r�rT)NF)@r�r�rr��dataclassesrtrrcr?r5r��os.pathr$rergrr�rrnr2r�r]r!r��urllib.errorrprJr*�collections.abcrrr��typingr�apport.crashdbrD�apport.fileutils�apport.logging�
apport.report�apport.REThread�apport.hook_uirr�apport.packaging_implrr��apport.user_groupr	rr%rrdr6rr(r8rLrUrqrxr��	dataclassr�r�rTr"r�<module>r�s����"�
�������	�
��
��	�
�
���
�������.� �������7�3�8����Z�Z�^�^�$9�;W�X��
�
��	�	'��8P�
%�-2�%�P�N$�b
�������ET�ETr"

Youez - 2016 - github.com/yon3zu
LinuXploit