__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x6�g�9�	��SrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSK
r
SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJrJr SSKJr SSK J!r! SSK"r#SSK$r#SSK%r#SSK&r#SSK'J(r) SSK*J+r+ Sr,\RZR]S	S
5r/Sr0Sr1S&S
\2S\3S-S\3S-4Sjjr4S\2S\3S\3S-4Sjr5S\3S\6\2\244Sjr7S\84Sjr9SS.S\:\2S\8S\!SS4Sjjr;Sr<S'Sjr=\R|"SS55r?"S S!5r@"S"S#5rA"S$S%\A5rBg)(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)�impl)�get_process_user_and_groupz2.32.0�APPORT_SYMPTOMS_DIRz/usr/share/apport/symptomsi c��[R"SURSS55RS5n[	U5$![
[4a gf=f)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�A�key�default�returnc�l�[[RU5$![[4a Us$f=f)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��3�3�name�uidc	���[R"SSSS[U5U/SSSS9nURS:wdUR(dg[URR
55$)	N�pgrepz-nz-x�-uTF)�capture_output�check�textr)�
subprocess�run�str�
returncode�stdoutr�strip)r"r#�processs   r�_get_newest_process_for_userr1Ts^���n�n�	�$��d�C��H�d�3���
�	�G����Q��g�n�n���w�~�~�#�#�%�&�&�c���[SU5nUc0$[R"SU3[R[R-[R
-5n[RRU5n[R"U5 SVs0sHnXC;dM
XCU_M sn$![a 0s[R"U5 $f=f![R"U5 f=fs snf)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)r1r�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_environrD`s���-�W�c�:�I����	��7�7�
����b�k�k�B�I�I�5����F��L���$�$�8�8��F�	�	�����A��@�C���	��s�^��@�������	�
�������	������s0�B0�	C3�$	C3�0C�<C�C�C�C0c��[[RRS5=(d [RRS55$)z:Check if a display server is specified in the environment.�DISPLAY�WAYLAND_DISPLAY)�boolrrr�r2r�has_displayrJ|s-����
�
���y�)�N�R�Z�Z�^�^�<M�-N�O�Or2F��get_user_env�argsrL�kwargsc�r�[S[S55nUb[5R5(d[R"U4SS0UD6 g[
R"U5n[S5nUcURn[RR5VVs0sH'upgURS5(aMUS:wdM%Xg_M) nnnU(aU[U5-nURUS'[R"U4SUUU[R"URU5S	.UD6 gs snnf)
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_UIDNr(F�SUDO_GID�SUDO_�HOME)r(�env�userr�extra_groups)r!r�is_rootr*r+�pwd�getpwuid�pw_gidrr�items�
startswithrD�pw_dir�getgrouplist�pw_name)	rMrLrNr#�pwuid�gid�k�vrUs	         r�run_as_real_userre�s���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�!D3�D3�	D3c��[R"[U5S5 g![a-nUR[R
:XaSnAgSnAgSnAff=f)z8Check if the process with the given ID is still running.rNFT)r�killrr?�errno�ESRCH�r�errors  r�
still_runningrl�sK���
����C��!�������;�;�%�+�+�%��&����s� #�
A�A�Ac�L	�[U[5(deUR5 UR	5 U(a�0n[USS9n[
[UR5US5U5 SSS5 US"X5nU(d![RRSU5 g[RR[RRU55SUS'U(d4S
U;a#[R,R/US
5nO[1S5e[R,R3U5nU(aUR5U5 UR7U5 S
U;a�UR?U5(a["R$"S5 SU;a�S[R@;a�SU;aSU;a[CS5US
'O�[DRF"USRI5S5(dT[DRJ"USRI5S5(d%[CS5USRI5S-US
'SU;aURM5n
U
(aX�S'UROS5S:XaKS[R@;a7URQ5nU(a [CS5SRSU5-US
'U(at[US5n[RT"US5 URWUSS9 SSS5 [R,RYU5 [RT"US5 gg![a GN@f=f!,(df   GN=f![ a ["R$"S5 GN�[&aO [RRS	U5 [(R*"5 ["R$"S5 GN	f=f![8a U(dSU;aeGN�[:an	[=U	5US
'Sn	A	GN�Sn	A	ff=f![8a U(dSU;aeGN�f=f!,(df   GNG=f![a+n	[RRSX5 Sn	A	GNzSn	A	ff=f)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�execNr+z8symptom script %s did not determine the affected packager�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�)-�
isinstance�HookUI�add_gdb_infor?�add_os_infor8rq�compile�readr<�loggingrkr�path�splitext�basename�
StopIteration�sys�exit�	Exception�	traceback�	print_excr=�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�snaprk�title�old_pkgss            r�thread_collect_infor��s�� �b�&�!�!�!�!�
�����
�������	��n�w�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���	��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��M�
M?�
&M-�3:M?�.AM?�#O=�'4P=�BP=�(Q.�4(Q�Q.�
M*�)M*�-
M<�7M?�? O:�"AO:�9O:�=P:�	P:�!P5�5P:�=Q�Q�
Q+�&Q.�+Q.�.
R#�8 R�R#c�`�\rSrSr%SrSr\\S'Sr\\S'Sr	\\S'Sr
\\S'Sr\\S'S	rg
)�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').
F�examine�ignore�rememberr�restartrIN)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�rH�__annotations__r�r�rr��__static_attributes__rIr2rr�r�Ds;����G�T���F�D���H�d���F�D���G�T�r2r�c	��\rSrSrSrS\\SS4SjrS\4Sjr	S\SS4S	jr
\S
\SS4Sj5rS\
S\4S
jr\S\
SS4Sj5r\S\
SS4Sj5rSGS\S-S\4SjjrS\4SjrS\4SjrSHSjrS\4Sjr\S\\S\R04Sj5rS\\S\R04Sjr\S\
S\4Sj5rS\
4SjrS\
4SjrS\4SjrSHSjrSHSjr S\SS4S jr!S\4S!jr"SIS\S-S"\S#\#/S4S-SS4S$jjr$S\4S%jr%S&\SS4S'jr&SHS(jr'S)\S\4S*jr(S\4S+jr)S\*\\4S-4S,jr+S\4S-jr,SHS.jr-SJS/\S0\
S-S\.4S1jjr/S2\S3\SS4S4jr0S2\S3\SS4S5jr1SHS6jr2SHS7jr3SHS8jr4SHS9jr5S:\6S-SS4S;jr7SHS<jr8SHS=jr9S\4S>jr:S?\SS4S@jr;S3\S\S-4SAjr<S3\SB\\SC\S\\
S-4SDjr=S3\S\S-4SEjr>SFr?g)K�
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.
�argvrNc���SUlSUlSUlSUlSUlSUlSUl[RRS5Ul[R "UR5 UR#U5Ulg![a3n[RRS[U55 SnANoSnAf[a" [RRS5 N�f=f)z8Initialize program state and parse command line options.r<NFzDCould 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_progressr<�crashdb�get_crashdb�ImportErrorr��fatalr,rr�
textdomain�
parse_argvrM)�selfr�rks   r�__init__�UserInterface.__init___s���&���37���'+���'+���"���$���-1���	�!�>�>�5�5�d�;�D�L�	���4�.�.�/��O�O�D�)��	���	��N�N� � ���E�
�
�
��
�	��N�N� � �J�
�	�s�$B�
C5�)C�,C5�4C5c��SnSUl[R"5S:Xa[RR5nO[RR
5nUHfnURU5(dMUR(deURSS:XaURU5 OURU5 SnMh U$)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.
FTrr{�Hang)r�r�geteuidr<r=�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���
r2r�c�	�Xl[RRU5 UR
(dUR
U5(dgUR
(deSUR
;agUR
RS5S:Xa�SUR
;a�SUR
;a�SUR
;a[RRUR
RS[S	555n[S
5U-n[S5nUR[S5U-US
U35 g[RR5nURU5nUR
(dUR(a SUR
;aUR!5 UR
cgUR(aUR5 gUR"(aUR#5 UR$(aUR
R'5 UR((aUR+UR
5 UR
(dgSUR
;a2UR
SS:wa[RR/U5 UR0R3UR
5(a=UR55(agUR75(agUR95 gg![a GN�f=f![,a N�f=f![:a= UR[S5[S55 [<R>"S5 g[a�nUR@[@RB:Xa [RDRGS5 eUR@[@RH:Xa;UR[S5[S55 [<R>"S5 eUR@[@RJ:XaDUR[S5[MURN55 [<R>"S5 eSnAff=f)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�
Stacktracerszunknown 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.r
zOut of memory, aborting�Errorz@There is not enough disk space available to process this report.)(r�r<r=r�r?rr�rrr�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�rh�ENOMEMr�r��ENOSPC�EIOr,�strerror)r�r��subject�heading�footerr��responserks        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�#�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��L�'L9�#L9�4C
L9�A>L9�!L9�#AL9�0,L)�L9�.BL9�0L9�L9�
L&�"L9�%L&�&L9�)
L6�3L9�5L6�6L9�9AR�?	R�C:R�Rr�c��[RRU5 [RRU5 g)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)r<r=r�r�)r�s rr��UserInterface.finish_hangs,��	���+�+�A�.����)�)�!�,r2rc�<�[R"S5UlURR(d%UR[
S5[
S55 gURRU5 URR5 URRS
S5n[RRU5UlURR#5 [RR%5nUR'U[)U5S9nUR(aY[RR+URU5 [,R."[)U5[0R25 O.[,R."[)U5[0R45 UR6(a!UR9U5 UR75 g![a�n[U5S:Xa@UR[
S5[
S55 [R"S5 SnAGN�[U5S	:Xa:UR[
S
5[
S55 [R"S5 SnAGNSnAff=f)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�zNo PID specifiedz;You need to specify a PID. See --help for more information.Fzinvalid process�Invalid PIDz(The specified process ID does not exist.r
znot accessiblezNot your PIDz0The specified process ID does not belong to you.Nrsr)�	modal_forT)r<�ReportrrMrr�r��
add_proc_infor r,r�r�r�rr=r�r�r�r�r�r�mark_hanging_processrrg�signal�SIGABRT�SIGKILLr��wait_for_pid)r�rrkr�r�r�s      r�run_hang�UserInterface.run_hang&s����m�m�F�+����y�y�}�}��!�!��$�%��O�P�
��
	��K�K�%�%�c�*�	
���$�$�&��{�{���/��4��!�+�+�=�=�d�C��������!�"�,�,�>�>�@���1�1�2C�s�SV�x�1�X���?�?����1�1�$�+�+�s�C��G�G�C��H�f�n�n�-��G�G�C��H�f�n�n�-�������c�"��L�L�N���7�	��5�z�.�.��%�%��m�$�a�(R�&S���������U��/�/��%�%��n�%��H�I���������	�s �G.�.
J�8A	J�A	J�Jc���[R"[U5S5 [R"S5 M9![a)nUR[R
:XaSnAgeSnAff=f)zswaitpid() does not work for non-child processes. Query the process
state in a loop, waiting for "no such process."
rNr
)rrgrr?rhri�time�sleeprjs  rr�UserInterface.wait_for_pidZsX��
�
�����C��!�$�

�J�J�q�M����
��;�;�%�+�+�-����
�s� ;�
A.�A)�(A)�)A.c�`�[R"[U5[R5 g)z!Kill process with signal SIGSEGV.N)rrgrr�SIGSEGV)rs r�	kill_segv�UserInterface.kill_segvhs��	����C��&�.�.�)r2r�c��URR(d]URR(dBU(d;UR5(agUR	[S5[S55 g[R"S5UlURR(Ga[R"SURR3[R[R-[R-5n[R"S[RUS9n[R"US	S
9nUR5R!5nSSS5 [#WS5nU[$-(aS
URlOIURR'URRUS9 OURR55 URR(a3URRR75URlURRS
:Xa:"5UlOURRUlUR?U5 URC5(agURE5 URG5(agURS	URRJ(a�[RLROURRJ5nURQS5(a<[RR"US5nURRUU5 SSS5 g[[RLROURRJ5S5nURRUU5 SSS5 gSn	URWU	5n
U
R(aURY5 g!,(df   GN�=f![(a' UR	[S5[S55 g[*[,4aRn[/USS5[0R2:XaSnAgUR	[S5[S55 SnAgSnAff=f![*a�nS[AU5;a~S[AU5;aoUR<(d(UR	[S5[S5U-5 O1UR	[S5[S5UR<-5 SnAgeSnAff=f![Ha GN�f=f!,(df   g=f!,(df   g=f![,a.nUR	[S5[AU55 SnAgSnAff=f)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�Bugr5�stat)�dir_fdrnroN��linux)r�proc_pid_fdzPermission deniedzfThe specified process does not belong to you. Please run this program as the process owner or as root.rhr�z6The 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)-rMr�r�run_symptomsr�r�r<r�rrr8r9r:r;�ior�r�r�
PF_KTHREADr�r�r r?�getattrrh�ENOENT�add_proc_environr/r��get_kernel_packager�r�r,r��add_extra_tagsr�r�saver��
expanduser�endswith�gzipr�r�r�)r�r�r�	stat_filer�r�flagsrk�savefiler�r�s           r�run_report_bug�UserInterface.run_report_bugmsb���y�y� � ������~�� � �"�"���!�!��(�)��8��
���m�m�E�*����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�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�a����)�)�!�,�3���b�g�g�0�0������@�$�G�1����)�)�!�,�H��!%���5�5�6G�H�H����� � �"��u:�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��1BP*�P�'5P*�.P*�R>�
U�<A V�U/�8V�=V�>V�V�
P'�"P*�*.R;�R;�)R6�
$R6�6R;�>
U�BU�U�U�
U,�+U,�/
U=�9V�=V�
V�
V�V�
W	�$W�W	c
��URRURR5(d%UR	[S5[S55 gURR
URR5nU(d"UR[S55nU(dg[R"S5Ul
URR(a&URRR5/nO/URRURR5nSnUHMnXPlXPRS'XPRS'[R "U5 UR1SS
9 SnMO U(d%UR3[S5[S55 gURR55 URR75 UR95 URS	URS	[=UR5S:Xa%UR3[S5[S55 gSnUR?U5nUR(a<URRAURRURSUSS9 gg!["au [$R&R)[$R&R+[RR,SUS	355(d[/S
US35 GM�GN�f=f![:a GN.f=f)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�
SourcePackagerx�source_�.pyzPackage z. not installed and no hook available, ignoringT)r�z$No additional information collected.�Daterzapport information)�change_description�attachment_comment)!r��
can_updaterM�
update_reportr�r��is_reporter�ui_question_yesnor<r�rr�r/�get_affected_packagesr�r��get_versionr rr��existsr��PACKAGE_HOOK_DIR�printr��ui_info_message�
add_user_inforrr�lenr��update)r�r2�r�pkgs�info_collected�pr�r�s        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�E�*����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%�'J<�
L>�<A7L;�:L;�>
M�Mc	��[R"[RR[S55n/nUH�n[RRU5R
S5(aM80n[USS9n[[UR5US5U5 SSS5 SU;a"[RRS	U5 M�[RR#[RRU55S
nUR%UR'SU5U45 M� U(dgUR)5 UR%S
5 UR+[-S5UVVs/sHupxUPM	 snnS5n	U	bIX)S
Sn
U
(a7UR/[RR[U
S-55 ggg!,(df   GND=f![a: [RRSU5 [R "5 GM�f=fs snnf)z\Report a bug from a list of available symptoms.

Return False if no symptoms are available.
z*.pyr�rnrorqNzsymptom script %s is invalidr+z0symptom script %s does not define run() functionr�descriptionF)z
Other problemNz+What kind of problem do you want to report?r
r,T)�globrr�r��symptom_script_dirr�r]r8rqr�r�r�r<r�rkr�r�r��appendr�sort�ui_question_choicer�r')r��scripts�symptoms�scriptr�r��symptom_namerDr"�ch�symptoms           rr�UserInterface.run_symptomsKs���
�)�)�B�G�G�L�L�);�V�D�E��24���F��w�w����'�2�2�3�7�7��#%�D�
��&�7�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���
����$�$�%C�V�L��#�#�%��
��(
<s6�8
G7�&G%�(G7�H>�%
G4	�/G7�4G7�7?H;�:H;c�\�[RR[URR
S-5n[RR
U5(d<UR[S5[S5URR
-5 gURU5 g)z#Report a bug with a symptom script.r,zUnknown symptomzThe symptom "%s" is not known.N)
rr�r�rFrMrOr6r�r�r')r�rLs  r�run_symptom�UserInterface.run_symptom~s{�������0�$�)�)�2C�2C�e�2K�L���w�w�~�~�f�%�%��!�!��#�$��2�3�d�i�i�6G�6G�G�
�
����F�#r2c���URR(aUR5 gURR(a&UR	URR
5 gURR(aUR5$URRbUR5$URR(a[[5 gURR(a'URURR5 gURR&(Ga([(R*"S5S:Xa%UR![#S5[#S55 gUR-S[#S	55 [.R0"S
S/S[.R2[.R2S
9nUR4S:XaF[7UR8R;5S5URlUR5$UR![#S5[#S5S-UR>RA5-5 gURC5$![a.nUR![#S5[%U55 SnAgSnAff=f![<a' UR![#S5[#S55 gf=f)z�Call appropriate run_* method according to command line arguments.

Return True if at least one report has been processed, and False
otherwise.
TNr��XDG_SESSION_TYPE�waylandra<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_PIDF)r(r.�stderrr���z2xprop failed to determine process ID of the windowr�)"rMrOrR�hangingrr�filebugr'r1rA�versionr8�__version__�
crash_filer�r?r�r�r,�windowr�getenvr9r*r+�PIPEr-rr.r�r rY�decoder�)r�rkrWs   r�run_argv�UserInterface.run_argv�s]���9�9���������9�9����M�M�$�)�)�-�-�(���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*�%J�)5J<�
J9�$J4�4J9�<.K-�,K-c	�D�[R"[S5S9nURSS[S5S9 URSS/S	[S
5S9 URSS
[S9 URUSS5nSUlSUlSUlSUl	SUl
U$)z=Parse command line options when being invoked in update mode.z%(prog)s <report number>��usage�-p�	--packagezSpecify package name.��help�--tagrG�tags�@Add an extra tag to the report. Can be specified multiple times.��actionr�destrlr1�
report_number)�metavar�typer
NF)�argparse�ArgumentParserr��add_argumentr�
parse_argsrOr\r_r]r[)r��parserrMs   r�parse_argv_update�UserInterface.parse_argv_update�s����(�(�q�1K�/L�M�����D�+�A�6M�4N��O���������U�V�	�	
�	���O�_�3��O�� � ��a�b��*������������������r2c	��
�Sn[U5S:�a�S[R;aq[RR	[RRUS5[RR
[RS55US'USnURS5(dURS5(aURU5$URS5(a[Rn[R"[S5S9nURS	S
SSU=(d [S
5S9 URSSS[S5S9 URSS[SU=(d [S5S9 URSSSU=(d [S5S9 URSSU=(d [S5S 9 URS!S"[U=(d [S#5S$9 URS%S[S&5S9 URS'S(S)U=(d& [S*5[R R"-S9 URS+S)[S,5S9 URS-S./S/[S05S19 URS2S3S[S45S9 URS5S6[RS79 UR%US8S5nUR&nU?UR((aeUR*UR,UR.UR0UR2UR4/n[7U5(aUR9S95 [U5S8:XaWRS5(a	S:UlU$UcU$[RR;[RR	[<US;-55(aS:UlXelU$URS<5(dURS=5(aXelU$UR?5(aS:UlXelU$S>U;Ga#URAS?5(a�[R RCURES>5S@5nU(dUR9USA35 ORURGSBSC5(a!UR9USDUSESFUSBSG35 OUR9USDUSESH35 [HRJ"S85 OG[LRN"U5n	U	(d*UR9USI35 [HRJ"S85 S:UlW	Ul(U$S:UlS:Ul)Xel(U$)JzpParse command line options.

If a single argument is given without any options, this tries to "do
what I mean".
Nr�APPORT_INVOKED_ASz-update-bugz-collectz-bugzI%(prog)s [options] [symptom|pid|package|program path|.apport/.crash file]rgz-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.))rqrrrlz-wz--windowz7Click a window as a target for filing a problem report.)rqrlr&z--update-bugr1z;Start in bug updating mode. Can take an optional --package.)rurrrlz-sz	--symptom�SYMPTOMzWFile a bug report about a symptom. (Implied if symptom name is given as only argument.))rtrlrirjz�Specify package name in --file-bug mode. This is optional if a --pid is specified. (Implied if package name is given as only argument.)rkz-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.))rurlz	--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.rmrGrnrorpz-vz	--versionz Print the Apport version number.�issue�?)�nargsrlr
zL-u/--update-bug option cannot be used together with options for a new reportTr,z.crashz.apport�/z	/snap/binrZzv 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;rrr�r��dirnamer�r"r{rv�SUPPRESSrwr�rxrr<r=�
report_dirryr�r1r\r`rOrr_r �anyrkr6rF�isdigitr]r�r�rr�r�r��get_file_packager�r�)
r�r��suppress�cmdrzrMr��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��N�O�
	�	
�	���������/��	�		
�	��������/��		�		
�	���������@��	�
	
�	������?�@�	�	
�
	�������*��@��
���)�)�*�	�	
�	������?��	�	
�	��������U�V�	�	
�	�������5�6�		�	
�	���G�3�X�5F�5F��G�� � ��a�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��r2�sizec���US:a[R"SUS-5$US:a[R"SUS-5$[R"SU[S5-5$)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�Hr2c���UR(deSnURH#nXRUR5-
nM% U$![a U[URU5-
nMQf=f)z'Return the size of the complete report.r�r�get_on_disk_sizerr;�r�r�rcs   r�get_complete_size�UserInterface.get_complete_size�sn���{�{��{������A�
,����A��7�7�9�9���
���"�
,���D�K�K��N�+�+��
,�s�A�%A4�3A4c��UR(deSnURH+nUS:wdMXRUR5-
nM- U$![a U[URU5-
nMYf=f)z&Return the size of the reduced report.rr�r�r�s   r�get_reduced_size�UserInterface.get_reduced_size�su���{�{��{������A��J��0��K�K��N�;�;�=�=�D�����&�0��C����A��/�/�D�0�s�A�%A<�;A<c��UR(aSUR;ag[R"S5cgUR5$)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���#�#�%�%r2c
�T�UR(aSUR;de[R"5S:Xal[R"5 [R"SSSURRSURS55 [R"S5 gg)zReopen the crashed application.rr�shr��RespawnCommandr
N)rr�fork�setsid�execlprr�r�r�s rr��UserInterface.restart�ss���{�{�}����;�;�;�
�7�7�9��>��I�I�K��I�I��������� 0�$�+�+�m�2L�M�	
�
�H�H�Q�K�r2c��UR(deUR[S5[S5[S5[S5UR-/S5nUcg[RRS5nSUS	3nS
nSURR
SS5-S-nUS
-U-US
-U-US-U-S-U-S.nURXaS5 g)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 � )rr
�r)r�rIr�rr�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�+�.�/r2�send_reportc�Z�[R"SSSSSSSSS	[U5R5/
5 [R"/S
Q5 g![[R
4a>n[
S5nUR[
S5US
[U535 SnAgSnAff=f)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.SetReportCrashes)
r�r�r�r�r�r�r�r�z<com.ubuntu.WhoopsiePreferences.SetAutomaticallyReportCrashes�truezLSaving crash reporting state failed. Can't set auto or never reporting mode.z*Can't remember send report status settingsr�N)r*�check_outputr,�lowerr?�CalledProcessErrorr�r�)r�r�rk�msgs    rr��"UserInterface.remember_send_report(s���%	��#�#�$����4��5��E���$�*�*�,��

�
�#�#��

����6�6�7�	��;��C�
�!�!��>�?��%�t�C��J�<�(�
�
��	�s�AA�B*�,4B%�%B*c�>�URbSUR;agURSR5RS5(ak[R"URS5n[U[5(deSU;de[RRSU5Ulg[RRSURS5Ulg![[[4a,nSURSSU3URS'SnAg	SnAff=f![[4a# S
URSS3URS'gf=f![[4a# S
URSS3URS'g	f=f)z+Process reports' CrashDB field, if present.NrvT�{rz=A package hook defines an invalid crash database definition:
�
ruFz@A package hook wants to send this report to the crash database "z" which does not exist.)r�lstripr]�ast�literal_evalr��dict�AssertionError�SyntaxErrorr r<r��load_crashdbr�rr�)r��specrks   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=�AC/�%D3�<2E)�/D0�"D+�+D0�30E&�%E&�)0F�Fr��on_finishedc
��UR(deSURS'URRS5S:XaSUR;d/URRS5S:waSUR;aU(aU"5 gURRS5S:XGaURRSS	5n[RR	U5(dD[S
5nU(aUSURSS3nXPRS
'U(aU"5 gSUR;am[RR	URS5(d<[S
5nUSURSS3URS
'U(aU"5 gSUR;a�SUR;a�[
URS5nURS	[
[R"URS5R5nXg:wa8SURS'[S5URS-URS
'gUR(d3SUR;a#U(dURR5 GOUR5 URRUR5(a[U5nO
[5nSUR;Ga [R R#5n	[$R&R'[(SURUR*URUUU4S9n
U
R-5 U
R/5(a8UR15 UR35 U
R/5(aM8U
R;5 [R R=5 [R R?U	5 U
RA5 SUR;Ga<SUR;Ga+SURS;aS/nOPURU[S5[S5URS-[S 5URS-/S!5nUS/:XaHURS	S"UR;a
URS"	S#UR;a
URS#	OuUS/:XaHURS	S$UR;a
URS$	S%UR;a
URS%	O&URW5 [6R8"S5 SUR;aSS%UR;aCURRYURR[S%5R]S&55 SUR;a�S$UR;a�S'UR;a�S
UR;a�UR^(a�[$R`RcUR5n
U
RS(S	5(a([S)5U
S*U
S+U
S(4-URS
'O#[S,5U
S*U
S+4-URS
'SURS'S
UR;dURe5(dURW5 U(aU"5 gURRS5S-:Xd/URRS5S.:XdSUR;a�[$R&R'URRfURRi54S/9nUR-5 UR/5(a9UR15 UR;S05 UR/5(aM9URA5 URk5(aURk5URS1'URRS5S2:wa�[$R&R'URRlUR4S/9nUR-5 UR/5(a9UR15 UR;S05 UR/5(aM9URA5 URk5nUb$US3LaS4URS1'OUURS1'[$R&R'URRnS59nUR-5 UR/5(a9UR15 UR;S05 UR/5(aM9URA5 URW5 S
UR;a�S#UR;aSUR;d@URRSS	5RqS65(doSUR;a_URs5(dJURu[S75[S855 URw5 [6R8"S5 U(aU"5 gg![4a [6R8"S5 GN@f=f![B[D[FRH4aBn[S5nUS[KU53URS
'SURS'SnAGN+SnAf[La; S
UR;a'[S5URS
'SURS'GNr[Najn[$RPRIS[KU55 [S5S-[SU5-URS
'SURS'SnAGN�SnAff=f![4a [6R8"S5 GNLf=f![B[D[FRH4a3n[S5nUS[KU53URS
'SnAGNuSnAff=f![4a [6R8"S5 GN�f=f![4a [6R8"S5 GNf=f)9aCollect 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��DependenciesNrsrzIThis problem report applies to a program which is not installed any more.z (�)ru�InterpreterPath�ExecutableTimestampr�zPThe problem happened with the program %s which changed since the crash occurred.r�)�targetr"rMr
�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:rtrxz(not installed)rzcYou have two versions of this application installed, which one do you want to report a bug against?z%s snapz%s deb packageF�PackageArchitecturer*�
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�r�rM皙�����?�_KnownReportrT�1)r��Kernelr�z7Could not determine the package or source package name.)<rrrr�r6r�rr�st_mtimer�r��!ui_start_info_collection_progressr�r�r��NoninteractiveHookUIr�copyr<�REThreadr�r��start�is_alive�!ui_pulse_info_collection_progress�
process_event�KeyboardInterruptr�r�r��clearr<�	exc_raiser?�EOFError�zlibrk�reprr r�r�r,rI� ui_stop_info_collection_progress�add_tags�popr�r�r=r�r��search_bug_patterns�get_bugpattern_baseurl�return_value�known�	anonymizer]�_is_snapr��ui_shutdown)r�r�r�r��exe_pathr��	orig_time�cur_time�hookui�orig_env�icthreadrk�resr��bpthread�known_thread�val�anonymize_threads                  rr��UserInterface.collect_infoys�
��&�{�{��{�(.����$�%�
�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�#�#�
���t�{�{�*�/D����/S��D�K�K�(=�>�?�I����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� �s��)k�k=�p�p=�r�/r9� k:�9k:�=p�7m�Ap� 	p�)Ap�p� p:�9p:�=r�(r
�
r� r6�5r6�9 s�sc�r�UR(deSUR;=(d SUR;$)Nr�rt)rr�s rr�UserInterface._is_snap�s+���{�{��{��t�{�{�*�C�f����.C�Cr2�urlc��[SU/SS9 g![a" [R"USSS9(agSnO f=f![anSU3nSnAOSnAff=f[S	5n[S
5U-nUR
XEU-5 g)zZOpen the given URL in a new browser window.

Display an error dialog if everything fails.
zxdg-openTrKNr
)�new�	autoraiserr�zUnable to start web browserz'Unable to start web browser to open %s.)rer?�
webbrowserr8r�r�r�)r�r�
error_detailsrkr��messages      r�open_url�UserInterface.open_url�s���

	)�
#� �*�c�!2��F����
#��?�?�3�A��>�� "�
�	
#��
�	)� ���L�M��	)���/�0���=�>��D�����e�}�%<�=s-��%<�?�<�?�<�?�
A�	A�Ac	�j^^�TR(deTRRTR5(dgTRRS5TRRS5:XaTRS	TRS	STlU4Sjn[R"5mS[S[SS4U4S	jjn[TR5H(nURS
5(dMTRU	M* TR5 [RRTRRTRX4S9nUR5 UR!5(awTR#TR
5 TRSS
S9upVnTR%XV5 UR'5 UR)5 UR!5(aMwUR)5 URA5n
TRC5 TRRETRU
5nU(aTRGU5 gg![a GN�f=f![a GN�f=f![R*a N�f=f![,a [.R0"S5 N�[2R4[6R8R:4a>n[=S5n	TR?[=S5U	S[U535 SnAgSnAff=f)zGUpload the current report and guide the user to the reporting
web page.Nr��Architecture�StacktraceAddressSignaturec�,>�[U5U-Tlg�N)r�r�)�sent�totalr�s  �r�progress_callback�4UserInterface.file_report.<locals>.progress_callback�s���#(��;��#6�D� r2r�r)rc�v>�[R"5nTRXU45 UR5 gr#)�	threading�Event�put�wait)r�r)�message_displayed�
message_queues   �r�message_callback�3UserInterface.file_report.<locals>.message_callback�s0��� )��� 1�����u�,=�>�?��"�"�$r2r�r�Tr�)�block�timeoutr
zHCannot connect to crash database, please check your Internet connection.zNetwork problemr�)$rr�r�rrr��queue�SimpleQueuer,�listr]�ui_start_upload_progressr<r��uploadr�r��ui_set_upload_progressr9�setr��Emptyr�r�r��smtplib�SMTPConnectError�urllibrk�URLErrorr�r�r�ui_stop_upload_progress�get_comment_urlr)
r�r&r/rc�upthreadr�r)�
msg_displayedrkr��ticketrr.s
`           @rr��UserInterface.file_report�s�����{�{��{��|�|�#�#�D�K�K�0�0���;�;�?�?�0�1�T�[�[�_�_�^�5T�T�
��K�K� 5�6�	����8�9� $���	7�
����	�	%�C�	%�s�	%�t�	%��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���
	�sm�:
I)�
I:�-0J%�AJ�"J%�9J%�)
I7�6I7�:
J�J�J"�J%�!J"�"J%�% L2�-L2�44L-�-L2r�c	��[R"5Ul[US5nURR	USS9 SSS5 SUR;a[S5eS
UR;a&URS
R#5SUlg[R&R)URR+SS55Ulg!,(df   N�=f![a. SUlUR[S5[S55 g	[a?nSUlUR[S
5[UR55 SnAg	SnAf[[
[[R4aEnSUl[S5nUR[S
5US[!U535 SnAg	SnAff=f)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�r�r�rxrrsrT)r<r�rr8�loadr �MemoryErrorr�r�r?r,r��	TypeErrorr�r�rkr�r�r�r=r�r)r�r�r�rkr�s     rr��UserInterface.load_reports���	� �-�-�/�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�
���
	�s@�&C-�C�#C-�
C*�&C-�-5G�$	G�-5E'�''G�;G�Gc��UR(deURRUR5(dgSUR;a�[URS[5(a+URSRS5URS'SUR;a-[
S5URSR5S-nOSnURU[
S5URS-5 g	g)
z^Check if the current report is unreportable.

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

%sT)	rr�r�r��bytesrcr�r�r9)r�r�s  rr�� UserInterface.check_unreportable?s���
�{�{��{��|�|�#�#�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�
�
�r2c	��UR(deSUR;aA[RRURS5(aURSnO*[R
R
UR5nU(dg[R"SSS9nURUSS9 UR#S
5(dg[%UR'S
55nSU;agU$![a gf=f![Ra9n[RRSUS[!U5S	35 SnAgSnAff=f)zzReturn a .desktop info dictionary for the current report.

Return None if report cannot be associated to a .desktop file.
�DesktopFileNF)�
interpolation�strictrNroz	Warning! z is broken: r�z
Desktop Entryr")rrr�r6r<r=�find_package_desktopfiler�r �configparser�ConfigParserr�r�r�rYr�r,�has_sectionr�r\)r��desktop_file�cprkr�s     r�get_desktop_entry�UserInterface.get_desktop_entryXs"��
�{�{��{��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*�&)C7�-D�7
D�D�E�/E�Ec��UR(deURRUR5(dgSUR;agURSRS5(aCUR	[S5[S55 UR
URS5 gUR	[S5[S55 g)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�r]r9r�rr�s rr��UserInterface.handle_duplicatexs����{�{��{��|�|�#�#�D�K�K�0�0������,���;�;�~�&�1�1�&�9�9�� � ��)�*��A��
�
�M�M�$�+�+�n�5�6��
� � ��)�*��O�P�
�
r2c��UR(deURR(a0URRURR5 gg)z6Add extra tags to report specified with --tags on CLI.N)rrMrnr�r�s rr�UserInterface.add_extra_tags�s8���{�{��{��9�9�>�>��K�K� � ������0�r2r�r�c��[S5e)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�r�s   rr��'UserInterface.ui_present_report_details�s��"�"R�S�Sr2r�r)c��[S5e)z:Show an information message box with given title and text.rcrd�r�r�r)s   rr9�UserInterface.ui_info_message����!�"R�S�Sr2c��[S5e)z4Show an error message box with given title and text.rcrdrhs   rr��UserInterface.ui_error_message�rjr2c��[S5e)z}Open a indefinite progress bar for data collection.

This tells the user to wait while debug information is being
collected.
rcrdr�s rr��/UserInterface.ui_start_info_collection_progress����"�"R�S�Sr2c��[S5e)zQAdvance the data collection progress bar.

This function is called every 100 ms.
rcrdr�s rr��/UserInterface.ui_pulse_info_collection_progress����
"�"R�S�Sr2c��[S5e)z,Close debug data collection progress window.rcrdr�s rr��.UserInterface.ui_stop_info_collection_progress�rjr2c��[S5e)zkOpen progress bar for data upload.

This tells the user to wait while debug information is being uploaded.
rcrdr�s rr6�&UserInterface.ui_start_upload_progress�rrr2�progressc��[S5e)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.
rcrd)r�rws  rr8�$UserInterface.ui_set_upload_progress�s��"�"R�S�Sr2c��[S5e)z(Close debug data upload progress window.rcrdr�s rr?�%UserInterface.ui_stop_upload_progress�rjr2c��g)zTCalled right before terminating the program.

This can be used for for cleaning up.
NrIr�s rr�UserInterface.ui_shutdown�s�r2c��[S5e)z`Check for a terminal window.

Check if a terminal application is available and can be launched.
rcrdr�s rr��UserInterface.ui_has_terminal�rrr2�commandc��[S5e)z|Run command in a terminal window.

Run given command in a terminal window; raise an
exception if terminal cannot be opened.
rcrd)r�r�s  rr��UserInterface.ui_run_terminal�ror2c��[S5e)�|Show a yes/no question.

Return True if the user selected "Yes", False if selected "No" or
"None" on cancel/dialog closing.
rcrd�r�r)s  rr3�UserInterface.ui_question_yesno�ror2�options�multiplec��[S5e)�=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.
rcrd�r�r)r�r�s    rrI� UserInterface.ui_question_choices��"�"R�S�Sr2c��[S5e)�]Show a file selector dialog.

Return path if the user selected a file, or None if cancelled.
rcrdr�s  r�ui_question_file�UserInterface.ui_question_filerrr2)	rMr�r�r�r�rr�r�r�r#)rN)NFN)TN)@r�r�r�r�r�r5r,r�rHr�r��staticmethodr�rrrrr'rArrRrdrrv�	Namespacer{r�r�r�r�r�r�r�r�r�rr�rrr�r�r�r�r[r�rr�r�r9r�r�r�r�r6r�r8r?rr�r�r3rIr�r�rIr2rr�r�Ts����*�T�#�Y�*�4�*�>"�T�"�Hx�S�x�T�x�t�-�s�-�t�-��-�2�C�2�D�2�h��#��$�����*�s�*�t�*��*�}�S�4�Z�}�4�}�~]�4�]�~1�d�1�f
$�M"�$�M"�f����
��(�2D�2D����*S�t�C�y�S�X�-?�-?�S�j�I�c�I�c�I��I�
�3�
��#��&�T�&��0�B'��'��'�R&�d�&�T&*�#(�15�	n��d�
�n�!�n��b�$�h�'�$�.�	n�

�n�`	D�$�D�>�C�>�D�>�*O�b*��*��*�X�D��2�4��S��>�D�#8��@ �$� �D1�GK�T�!%�T�9<�t��T�	�T�T�S�T��T��T�T�c�T��T��T�T�T�T�T�T�u�t�|�T��T�T��T��T�T�s�T�t�T�T�c�T�d�T�k�T�T��T�"&�s�)�T�7;�T�	
�c��T�	�T�T�S�T�S�4�Z�Tr2r�c�F�\rSrSrSrSrSrSrSSjrSr	Sr
S	rS
rg)
r�iaSInteractive functions which can be used in package hooks.

This provides an interface for package hooks which need to ask interactive
questions. Directly passing the UserInterface instance to the hooks needs
to be avoided, since we need to call the UI methods in a different thread,
and also don't want hooks to be able to poke in the UI.
c��Xl[R"5Ul[R"5UlSUlSUlSUlg)zCCreate a HookUI object.

ui is the UserInterface instance to wrap.
N)r�r)r*�_request_event�_response_event�_request_fn�
_request_args�	_response)r�r�s  rr��HookUI.__init__"s@��
��(�o�o�/���(���0������!�����r2c�(�URSSU5$)z�Show an information with OK/Cancel buttons.

This can be used for asking the user to perform a particular action,
such as plugging in a device which does not work.
r9r��_trigger_ui_requestr�s  r�information�HookUI.information4s���'�'�(9�2�t�D�Dr2c�&�URSU5$)r�r3r�r�s  r�yesno�HookUI.yesno<s���'�'�(;�T�B�Br2c�(�URSXU5$)r�rIr�r�s    r�choice�
HookUI.choiceDs���'�'�(<�d�X�V�Vr2c�&�URSU5$)r�r�r�r�s  r�file�HookUI.filePs��
�'�'�(:�D�A�Ar2c��URR5(aeURR5(aeURbeSUlXlX lURR
5 URR5 SUlURR5 UR$)z5Called by HookUi functions in info collection thread.N)	r��is_setr�r�r�r�r9r,r�)r��fnrMs   rr��HookUI._trigger_ui_request[s����&�&�-�-�/�/�/�/��'�'�.�.�0�0�0�0����'�'�'������!�������!����!�!�#�������"�"�$��~�~�r2c��URRS5 URR5(dgURR5(aeURR	5 [URUR5"UR6Ul	URR5 g)z;Called by GUI thread to check and process hook UI requests.r�N)r�r,r�r�r�rr�r�r�r�r9r�s rr��HookUI.process_eventms���	
��� � ��%��"�"�)�)�+�+���'�'�.�.�0�0�0�0����!�!�#� ����$�*:�*:�;�T�=O�=O�P������ � �"r2)r�r�r�r�r�r�N�F)
r�r�r�r�r�r�r�r�r�r�r�r�r�rIr2rr�r�s.����$E�C�
W�B��$
#r2r�c�\^�\rSrSrSrU4SjrS\4SjrSrSr	SSjr
S	rS
rSr
U=r$)
r�izz8HookUI variant that does not ask the user any questions.c�$>�[TU]S5 gr#)�superr�)r��	__class__s �rr��NoninteractiveHookUI.__init__}s���
����r2rc�4�URRS3$)Nz())r�r�r�s r�__repr__�NoninteractiveHookUI.__repr__�s���.�.�)�)�*�"�-�-r2c��gr#rIr�s  rr�� NoninteractiveHookUI.information����r2c��gr#rIr�s  rr��NoninteractiveHookUI.yesno�r�r2c��gr#rIr�s    rr��NoninteractiveHookUI.choice�r�r2c��gr#rIr�s  rr��NoninteractiveHookUI.file�r�r2c�0�[R"S5 g)Nr�)rrr�s rr��"NoninteractiveHookUI.process_event�s
���
�
�3�r2rIr�)r�r�r�r�r�r�r,r�r�r�r�r�r�r��
__classcell__)r�s@rr�r�zs5���B��.�#�.������r2r�r#)NF)Cr�rvr�rV�dataclassesrhrrEr#rr��os.pathrrYr3rr�rr;r*r�r)rr��urllib.errorr=rr��collections.abcrrr��typingr�apport.crashdbr<�apport.fileutils�apport.logging�apport.REThread�apport.packaging_implrr��apport.user_grouprr^rrrFrrr,rr!r1r�rDrHrJr5rerlr��	dataclassr�r�r�r�rIr2r�<module>r�s����&�
�������	�
��
��	�
�
���
�������.� ������3�8����Z�Z�^�^�$9�;W�X��
�
��	�c�	�C�$�J�	�#��*�	�	'�s�	'��	'��t��	'��C��D��c��N��8P�T�P�.3�%�
�s�)�%�&*�%�>A�%�	�%�P�NS�N$�b
�������BT�BT�J6^#�^#�B�6�r2

Filemanager

Name Type Size Permission Actions
REThread.cpython-313.pyc File 2.85 KB 0644
__init__.cpython-313.pyc File 954 B 0644
crashdb.cpython-313.pyc File 34.04 KB 0644
fileutils.cpython-313.pyc File 31.92 KB 0644
hookutils.cpython-313.pyc File 47.15 KB 0644
logging.cpython-313.pyc File 2.97 KB 0644
packaging.cpython-313.pyc File 14.2 KB 0644
report.cpython-313.pyc File 82.55 KB 0644
sandboxutils.cpython-313.pyc File 12.43 KB 0644
ui.cpython-313.pyc File 87.14 KB 0644
user_group.cpython-313.pyc File 1.81 KB 0644
Filemanager