AppImageCommunity / libappimage

Implements functionality for dealing with AppImage files
https://appimage.org
Other
46 stars 29 forks source link

Create $XDG_DATA_HOME/mime/packages if it does not exist #114

Open probonopd opened 5 years ago

probonopd commented 5 years ago

Has the logic for running update-mime-database and friends already been ported over to the lib? If not, it should be done.

Before running update-mime-database we should create $XDG_DATA_HOME/mime/packages; if $XDG_DATA_HOME is either not set or empty, $HOME/.local/share/mime/packages needs to be created.

me@host:~$ ./Downloads/appimaged-x86_64\(1\).AppImage --verbose --version
appimaged, continuous build (commit 1c7986a), build 146 built on 2019-05-11 07:44:39 UTC
(...)
Directory '/home/me/.local/share/mime/packages' does not exist!
Warning: update-mime-database retuned non-zero exit code:
probonopd commented 5 years ago

This is still an issue.

Hi @azubieta can you please add tests that show what happens when