The plan is to start working towards a rewrite of xdg-utils in python, focusing on the really bad bits such as dealing with desktop files and mime handling.

In this hackweek, I want to split python-xdg into multiple libraries such as python-mime and python-desktop file and prepare them to be used in helper binaries to handle some of the more complex tasks currently done in shell.

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 19

Activity

  • 9 months ago: simotek started xdg-utils python rewrite
  • 9 months ago: mvidner liked xdg-utils python rewrite
  • 9 months ago: simotek originated xdg-utils python rewrite

  • Comments

    • mvidner
      9 months ago by mvidner | Reply

      Interesting! Some time ago I wanted XDG logic in a (Ruby) script of mine, and the API was awful. I hope the Python lib is better. Anyway, links:

    • simotek
      9 months ago by simotek | Reply

      Yeah i've spoken with the main author of https://freedesktop.org/wiki/Software/pyxdg/ and we decided the best way forward was to work toward a v2 of the library that splits it up better, into things like mime, desktop etc.

    • bmwiedemann
      9 months ago by bmwiedemann | Reply

      Be sure to keep the startup time small. E.g.

      time ruby --disable-gems -e 'puts "hello"'

      and

      time python3 -S -c 'print("hello")'

      are still a factor of 3-4 slower than the equivalent in bash or perl.

    Similar Projects

    This project is one of its kind!