| Server IP : 146.190.157.162 / Your IP : 216.73.216.238 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : businessweek ( 639) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/apport/__pycache__/ |
Upload File : |
�
�$e�= � � � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ ddlmZmZ ddl Z!ddl"Z!ddl#Z!ddl$Z!ddl%m&Z' ddl(m)Z) dZ*ej+ �, dd � � Z-d
Z.d� Z/d$de0d
ee1 dee1 fd�Z2de0de1dee1 fd�Z3de1de4e0e0f fd�Z5dd�de6e0 de7deddfd�Z8d� Z9 d%d�Z:ej; G d� d� � � � Z< G d� d� � Z= G d � d!� � Z> G d"� d#e>� � Z?dS )&z�Abstract Apport user interface.
This encapsulates the workflow and common code for any user interface
implementation (like GTK, Qt, or CLI).
� N)�gettext)�Any�Optional)�impl)�get_process_user_and_groupz2.27.0�APPORT_SYMPTOMS_DIRz/usr/share/apport/symptomsi c �� � t j d| � dd� � � � � d� � }t |� � S # t
t f$ r Y dS w xY w)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 ? sf � ���i���
�
�<��(D�(D�E�E�K�K�A�N�N���3�x�x�����'� � � ��t�t����s �A
A
�
A"�!A"�key�default�returnc �t � t t j | � � S # t t f$ r |cY S w xY w)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)r r s r �_get_env_intr H sD � ���2�:�c�?�#�#�#���j�!� � � ��������s �! �7�7�name�uidc �� � t j ddddt |� � | gddd�� � }|j dk s|j sd S t |j � � � � � S ) N�pgrepz-nz-x�-uTF)�capture_output�check�textr )�
subprocess�run�str�
returncode�stdoutr �strip)r! r"