[fix] flatpak hack to get XDG DIR DOWNLOAD to work

This commit is contained in:
Julian Sparber
2017-10-01 21:57:28 +02:00
parent d245eebaea
commit 3ebd388108

View File

@@ -5,5 +5,9 @@
int int
main (int argc, char *argv[]) main (int argc, char *argv[])
{ {
if (g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD) == NULL) {
g_spawn_command_line_sync("xdg-user-dirs-update", NULL, NULL, NULL, NULL);
}
return g_application_run (G_APPLICATION (teleport_app_new ()), argc, argv); return g_application_run (G_APPLICATION (teleport_app_new ()), argc, argv);
} }