Manos Pitsidianakis
1be8bf0011
Bump version to 0.4.0
Breaking changes: `query_default_app()` now returns the 'Exec=' value of
the desktop file instead of just the binary name.
2 years ago
Emmanuel Gil Peyrot
5e5d38665d
Return a command instead of a binary from desktop
The current way was missing very common usecases, like passing arguments
to the program, or giving it environment variables, and it didn’t even
give a valid path when the full path wasn’t present.
The Exec line must be a POSIX shell command.
2 years ago
Manos Pitsidianakis
2f9a323426
Bump version to 0.3.2
2 years ago
Manos Pitsidianakis
d8d8812276
Check "Added Associations" before "Default Applications"
2 years ago
Manos Pitsidianakis
e0611744d9
Desktop key strings should be lowercase according to freedesktop spec
2 years ago
Emmanuel Gil Peyrot
580a7e461f
Make ini parsing more robust
It now ignores matches from the wrong section, and should be negligibly
slower, while still introducing no dependency.
2 years ago
Emmanuel Gil Peyrot
945dcf559b
Remove legacy applnk support
These directories haven’t existed in some decades, there is no need to
support them in a new implementation of xdg-utils in 2020. :)
2 years ago
Emmanuel Gil Peyrot
f6f42370b3
Add forgotten XDG_CONFIG_DIRS fallback
2 years ago
Manos Pitsidianakis
f1edb56ff7
Fix query_mime_info doco test
/bin/sh might be a symbolic link
2 years ago
Manos Pitsidianakis
a80f30fdfc
Bump version to 0.3.1
2 years ago
Manos Pitsidianakis
9b12211603
Fix query_default_app failing if desktop vars are null
2 years ago
Manos Pitsidianakis
223bc24560
Refactor and update to 0.3.0
3 years ago
Manos Pitsidianakis
fdd4f43a84
bump version to 0.2.0
4 years ago
Manos Pitsidianakis
23ce2e2ac9
Add query_mime_info()
4 years ago
Manos Pitsidianakis
ca193dad8b
Initial commit
5 years ago