Updated
On this page
Cross-platform desktop entry creation and removal for Linux .desktop files, macOS .app bundles, and Windows Start Menu shortcuts.
#src.wesktop.entries
#src.wesktop.entries
Cross-platform desktop entry creation and removal for Linux .desktop files, macOS .app bundles, and Windows Start Menu shortcuts.
#create_entry
python
def create_entry(name: str, command: str, *, icon: str | Path | None=None, comment: str='', categories: str='Utility;') -> PathCreate a platform-native desktop entry. Returns the path of the created entry.
#remove_entry
python
def remove_entry(name: str) -> boolRemove a desktop entry. Returns True if something was removed.