Skip to main content

A graphical Program to create and edit Desktop Entries

Project description

jdDesktopEntryEdit

A graphical Program to create and edit Desktop Entries

jdDesktopEntryEdit

jdDesktopEntryEdit allows you to create and edit Desktop Entries according to the Freedesktop Specification.

Unlike other Programs, which try to make things easy by implementing only the main parts, the Goal of jdDesktopEntryEdit is to support the full specification.

Install

Flatpak

You can get jdDesktopEntryEdit from Flathub

AUR

Arch Users can get jdDesktopEntryEdit from the AUR

pip

You can install jdDesktopEntryEdit from PyPI using pip:

pip install jdDesktopEntryEdit

Using this Method, it will not include a Desktop Entry or any other Data file, so you need to run jdDesktopEntryEdit from the Command Line. Use this only, when nothing else works.

From source

This is only for experienced Users and someone, who wants to package jdDesktopEntryEdit for a Distro. jdDesktopEntryEdit should be installed as a Python package. You can use pip or any other tool that can handle Python packages. YOu need to have lrelease installed to build the Package. After that, you should run install-unix-datafiles.py which wil install things like the Desktop Entry or the Icon in the correct place. It defaults to /usr, but you can change it with the --prefix argument. It also applies the translation to this files. You need gettext installed to run install-unix-datafiles.py.

Here's a example of installing jdDesktopEntryEdit into /usr/local:

sudo pip install --prefix /usr/local .
sudo ./install-unix-datafiles.py --prefix /usr/local

Translate

You can help translating jdDesktopEntryEdit on Codeberg Translate

Develop

jdDesktopEntryEdit is written in Python and uses PyQt6 as GUI toolkit. You should have some experience in both. You can run jdDesktopEntryEdit.pyto start jdDesktopEntryEdit from source and test your local changes. It ships with a few scripts in the tools directory that you need to develop.

BuildTranslations.py

This script takes all .ts files and compiles it to .qm files. The .ts files are containing the translation source and are being used during the translation process. The .qm contains the compiled translation and are being used by the Program. You need to compile a .ts file to a .qm file to see the translations in the Program.

UpdateTranslations.py

This regenerates the .ts files. You need to run it, when you changed something in the source code. The .ts files are contains the line in the source, where the string to translate appears, so make sure you run it even when you don't changed a translatable string, so the location is correct.

UpdateUnixDataTranslations.py

This regenerates the translation files in deploy/translations. these files contains the translations for the Desktop Entry and the AppStream File. It uses gettext, as it is hard to translate this using Qt. These files just exists to integrate the translation with Weblate, because Weblate can't translate the Desktop Entry and the AppStream file. Make sure you run this when you edited one of these files. You need to have gettext installed to use it.

UpdateTranslators.py

This uses git to get a list of all Translators and writes it to jdDesktopEntryEdit/data/translators.json. This is used to display the translators in the About Dialog. You need git to run this script.

WriteChangelogHtml.py

This read the Changelog from deploy/page.codeberg.JakobDev.jdDesktopEntryEdit.metainfo.xml, converts it to HTML and writes it to jdDesktopEntryEdit/data/changelog.html. This is used to display the Changelog in the About Dialog. You need appstream-python to be installed to use this script.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jdDesktopEntryEdit-1.2.tar.gz (52.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jdDesktopEntryEdit-1.2-py3-none-any.whl (65.3 kB view details)

Uploaded Python 3

File details

Details for the file jdDesktopEntryEdit-1.2.tar.gz.

File metadata

  • Download URL: jdDesktopEntryEdit-1.2.tar.gz
  • Upload date:
  • Size: 52.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for jdDesktopEntryEdit-1.2.tar.gz
Algorithm Hash digest
SHA256 67c3d0540d0fcf454b7be675d069f349e602f4f95ed27253305cc3a103a964d2
MD5 489ad0df4c4a2dd7a127df9a8345315c
BLAKE2b-256 bdcb8e32ef5c855e8f7f069fc1c85ca74fbe74ac8e814238c842b740e52a2fd6

See more details on using hashes here.

File details

Details for the file jdDesktopEntryEdit-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jdDesktopEntryEdit-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ebb433bb02944c9a7a40deb13a74cd7e00b01559dca978ab5598323286423a5
MD5 599c51b72b12fe93c677d0809e67425c
BLAKE2b-256 31f394f5fe30faf4b8f41b05c7fd3302fd0b62887d7484fbf76de2352cb0f4bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page