Skip to content

Python library for parsing .desktop files - For use with Deepstream Files

License

Notifications You must be signed in to change notification settings

Guydada/desktop-parser-deepstream

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Desktop Parser

This is a parser for the .desktop file format. It's used in Desktop Creator.

Installation

From pypi

pip install desktop-parser

From source

git clone https://github.com/DesktopCreatorTeam/desktop-parser
cd desktop-parser
poetry install

From the AUR

yay -S python-desktop-parser

Usage

from desktop_parser import DesktopFile

# Parse a file
desktop_file = DesktopFile.from_file("path/to/file.desktop")

desktop_file.data["Name"] = "New Name"
desktop_file.data["Exec"] = "new-exec"

# Save the file
desktop_file.save("path/to/file.desktop")

Documentation

The documentation is available here.

License

This project is licensed under the GNU GPLv3 license - see the LICENSE.md file for details.

Acknowledgments

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors and Contributors

About

Python library for parsing .desktop files - For use with Deepstream Files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%