/tool-desktop-shortcut

This module provides functions to read, write, and manipulate desktop files used in Linux desktop environments "desktop" extension files are used to define application shortcuts and are commonly used to create icons on the desktop in Linux desktop environments.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Overview

This module enables users to effectively manage their shortcuts in Linux desktop environments, enhancing user experience and optimizing personal workflows. Users can get customized desktop solution management solutions by integrating them into their own module applications. language codes

Installation

git clone https://github.com/knowhw/tool-desktop-shortcut.git

Set Language Code

export HELLO_WORLD='bg, bh, bn, bs, ca, mk, tr, zh-CN, zh-TW'

Solution

from shortcut import Key
from shortcut import Content
import shortcut


test = Content("yeap")

test.Entry ["Name"] = "Yeap"
test.Entry ["Exec"] = "/usr/share/app/yeap"
test.Entry ["Icon"] = "yeap"
test.Entry ["Categories"] = "InstantMessaging"
test.Entry ["Type"] = "Application"


# Entry Group
test.entry.group (key="Name", value="Yeap")

# Item pop
# test.entry.popitem("Name")


# Item get value

# item = Key.getitem("Name")
# print(item.text)


test = shortcut.print_content()
print(test)