| 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�c�� � �� � d Z ddlZddlZddlZddlZddlZ ddlmc mZ n# e $ r ddl
mc mZ Y nw xY wddlm
Z
mZ ddlmZ ddlmZ ddlmZ ddlZddlZd� Zd� Zd Zd
ZdZdZd
ZdZ G d� d� � Z G d� d� � Z! G d� d� � Z" G d� d� � Z# G d� d� � Z$ G d� d� � Z% G d� d� � Z&d\ Z'Z(d� Z)d� Z*d � Z+d!� Z, G d"� d#e-� � Z. G d$� d%� � Z/d(d'�Z0dS ))a�
Implementation of the XDG Menu Specification
http://standards.freedesktop.org/menu-spec/
Example code:
from xdg.Menu import parse, Menu, MenuEntry
def print_menu(menu, tab=0):
for submenu in menu.Entries:
if isinstance(submenu, Menu):
print (" " * tab) + unicode(submenu)
print_menu(submenu, tab+1)
elif isinstance(submenu, MenuEntry):
print (" " * tab) + unicode(submenu.DesktopEntry)
print_menu(parse())
� N)�
xdg_data_dirs�xdg_config_dirs)�DesktopEntry)�ParsingError)�PY3c � � t j dk rLt j | � � } t j dk rt j | � � S t j | � � S t j | t j � � �� � S )N)� � )r � ��id�ctx)�sys�version_info�ast�literal_eval�Constant�NameConstant�Name�Load)�names �*/usr/lib/python3/dist-packages/xdg/Menu.py�
_ast_constr '