Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnome.post_install does not support update-mime-database #10865

Closed
pbor opened this issue Sep 28, 2022 · 2 comments · Fixed by #10867
Closed

gnome.post_install does not support update-mime-database #10865

pbor opened this issue Sep 28, 2022 · 2 comments · Fixed by #10867

Comments

@pbor
Copy link
Contributor

pbor commented Sep 28, 2022

Describe the bug
I am trying to migrate a custom post install script to gnome.post_install, but as far as I can see it does not provide a way to update the mime db.

My post install script does:

    subprocess.call(['glib-compile-schemas',
                    os.path.join(datadir, 'glib-2.0', 'schemas')])
    subprocess.call(['gtk-update-icon-cache', '-qtf',
                    os.path.join(datadir, 'icons', 'hicolor')])
    subprocess.call(['update-desktop-database', '-q',
                    os.path.join(datadir, 'applications')])
    subprocess.call(['update-mime-database',
                    os.path.join(datadir, 'mime')])

The last step is not provided by the gnome module

@eli-schwartz
Copy link
Member

eli-schwartz commented Sep 28, 2022

You can use meson.add_install_script('update-mime-database, prefix / datadir / 'mime', skip_if_destdir: true). This doesn't require waiting for a new meson version.

@pbor
Copy link
Contributor Author

pbor commented Sep 28, 2022

Yeah, I mean I can keep the current script, no big deal. Just opened the CR so that it gets fixed eventually :)

pbor pushed a commit to pbor/meson that referenced this issue Sep 28, 2022
xclaesse pushed a commit that referenced this issue Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants