Sindbad~EG File Manager
o
�/�a� � @ s� d Z dZdZdZddlZddlZddlZddlZddlT ddl m
Z
mZ ddlm
Z
ed k�r�e�e�� �e�� kr>e�� e�eee edefeeef�Zejejd
gd� e�dd
dgd�\ZZZZZZ dZ!eD ]
\Z"Z#e"dv rsdZ!qie�$� dkr�e%�&d� e�'d� edkr�e
�(� s�e%�&de � e�'d� ne
�)� s�e%�&de � e�'d� e!s�e
�*dd� e
�+� D �dd� �s�e%�,d� e�'d� e�-� e�.� \Z/Z0e%�1de0e/f � e�� Z2ze�3� Z4W n- e5�y Z6 z e%�&de6 � e�7e0� e�7e/� e�8� e�'d� W Y dZ6[6ndZ6[6ww e4�r�e�7e0� edk�r9zddl9m:Z; W nT e<�y8 e%�&d� e�'d� Y nAw zedk�rFddl=m:Z; ned k�rQddl>m:Z; W n& e<�yx Z6 ze%�&e6� e%�&d!� e�8� e�'d� W Y dZ6[6ndZ6[6ww ze;�?e/� W e�8� dS e�8� w e�7e/� ed"v �r�e�.� \Z@ZAe�.� \ZBZCe%�1d#eAe@f � e%�1d$eCeBf � e�3� ZDeD�r�e�7e@� ddlEZEeE�?e0eAeB� dS e�7eA� ddlFZFeF�?e@eC� dS ddlEZEeE�?e0� dS dS )%z2.0z
hp-systrayzSystem Tray Status Servicez6System Tray monitors the HP device status and Displays� N)�*)�utils�module)�cups�__main__)z1Startup even if no hplip CUPS queues are present:z-x or --force-startup�optionF)�
extra_options�xz
force-startupzignore-update-firsttimeF)z-xz--force-startupTz*hp-systray cannot be run as root. Exiting.� �qt3z.%s requires Qt3 GUI and DBus support. Exiting.z.%s requires Qt4 GUI and DBus support. Exiting.c C s g | ]}|j �qS � )�
device_uri)�.0�pr r �/usr/share/hplip/systray.py�
<listcomp>R s r c C s
| � d�S )N�hp)�
startswith)r r r r �<lambda>R s
r zDNo hp: or hpfax: devices found in any installed CUPS queue. Exiting.z-Creating pipe: hpssd (%d) ==> systemtray (%d)z"hp-systray: error during fork - %sz,Unable to load Qt3 support. Is it installed?�qt4�qt5z0Unable to load Qt4/Qt5 support. Is it installed?)r r z(Creating pipe: hpssd (%d) ==> hpdio (%d)z(Creating pipe: hpdio (%d) ==> hpssd (%d))G�__version__�__mod__� __title__�__doc__�sys�os�getopt�signal�base.g�baser r �prntr �__name__�getpgid�getpid�setsid�Module�GUI_MODE�UI_TOOLKIT_QT5�UI_TOOLKIT_QT4�UI_TOOLKIT_QT3�mod�setUsage�USAGE_FLAG_NONE�parseStdOpts�optsr
�printer_name�mode�
ui_toolkit�lang�
force_startup�o�a�getuid�log�error�exit�canEnterGUIMode�canEnterGUIMode4�any�getPrinters�warn�lockInstance�pipe�r1�w1�debug�
parent_pid�fork�
child_pid1�BlockingIOErrror�e�close�unlockInstance�
ui.systemtray�
systemtray�systray�ImportError�ui4.systemtray�ui5.systemtray�run�r2�w2�r3�w3�
child_pid2�hpssd�hpdior r r r �<module> s�
����
�
��
�
�
��
�
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists