| Server IP : 217.160.0.135 / Your IP : 216.73.216.73 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/xdg/__pycache__/ |
Upload File : |
�
�u�c6D � �n � d Z ddlmZmZ ddlZddlmZ ddlm Z ddl
ZddlZddl
Z
G d� de� � ZdS )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 �b � 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;dS )<�DesktopEntryz+Class to parse and validate Desktop Entries�
Desktop EntryNc �� � t � � | _ |r6t j � |� � r| � |� � dS |r| � |� � dS dS )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__ sn � � �v�v���� �����x�0�0� ��J�J�x� � � � � �
� ��H�H�X������ � � c �* � | � � � S �N)�getName�r s r �__str__zDesktopEntry.__str__&