%PDF- %PDF-
Direktori : /lib/python3/dist-packages/xdg/__pycache__/ |
Current File : //lib/python3/dist-packages/xdg/__pycache__/DesktopEntry.cpython-312.pyc |
� �u�c6D � �f � d Z ddlmZmZ ddlZddlmZ ddlm Z ddl ZddlZddl Z G d� de� Zy)a/ Complete implementation of the XDG Desktop Entry Specification http://standards.freedesktop.org/desktop-entry-spec/ Not supported: - Encoding: Legacy Mixed - Does not check exec parameters - Does not check URL's - Does not completly validate deprecated/kde items - Does not completly check categories � )�IniFile�is_asciiN)�ParsingError)�whichc �` � e Zd ZdZdZd;d�Zd� Zd� Zd� Zd� Z d � Z d � Zd� Zd� Z d � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d � Z!d!� Z"d"� Z#d#� Z$d$� Z%d%� Z&d&� Z'd'� Z(d(� Z)d)� Z*d*� Z+d+� Z,d,� Z-d-� Z.d.� Z/d/� Z0d0� Z1d1� Z2d2� Z3d3� Z4d4� Z5d5� Z6d6� Z7d7� Z8d8� Z9d9� Z:d:� Z;y)<�DesktopEntryz+Class to parse and validate Desktop Entries� Desktop EntryNc � � t � | _ |r1t j j |� r| j |� y|r| j |� yy)z�Create a new DesktopEntry. If filename exists, it will be parsed as a desktop entry file. If not, or if filename is None, a blank DesktopEntry is created. N)�dict�content�os�path�exists�parse�new)�self�filenames �2/usr/lib/python3/dist-packages/xdg/DesktopEntry.py�__init__zDesktopEntry.__init__ s? � � �v���������x�0��J�J�x� � ��H�H�X�� � c �"