You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
main.c: run update-desktop-database on --install
Running update-desktop-database is required to update ~/.local/share/applications/mimeinfo.cache.
This commit is contained in:
@@ -175,6 +175,12 @@ static void dynamic_launcher_ready_callback(GObject *portal, GAsyncResult *res,
|
|||||||
printf("failed to install dynamic launcher: %s\n", err->message);
|
printf("failed to install dynamic launcher: %s\n", err->message);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
// run update-desktop-database to add the new x-scheme-handler entries to ~/.local/share/applications/mimeinfo.cache
|
||||||
|
char *update_desktop_database = g_strdup_printf("update-desktop-database %s/applications", g_get_user_data_dir());
|
||||||
|
printf("running: `%s`\n", update_desktop_database);
|
||||||
|
system(update_desktop_database);
|
||||||
|
g_free(update_desktop_database);
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user