diff options
Diffstat (limited to 'FreeFileSync/Source/RealTimeSync/application.cpp')
-rw-r--r-- | FreeFileSync/Source/RealTimeSync/application.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FreeFileSync/Source/RealTimeSync/application.cpp b/FreeFileSync/Source/RealTimeSync/application.cpp index 307f7d34..63b8ccbe 100644 --- a/FreeFileSync/Source/RealTimeSync/application.cpp +++ b/FreeFileSync/Source/RealTimeSync/application.cpp @@ -28,7 +28,7 @@ using namespace zen; using namespace rts; -IMPLEMENT_APP(Application); +IMPLEMENT_APP(Application) namespace @@ -45,6 +45,11 @@ bool Application::OnInit() #if GTK_MAJOR_VERSION == 2 ::gtk_rc_parse((fff::getResourceDirPf() + "Gtk2Styles.rc").c_str()); + //fix hang on Ubuntu 19.10 (see FFS's application.cpp) + if (::setenv("GIO_USE_VFS", "local", true /*overwrite*/) != 0) + std::cerr << utfTo<std::string>(formatSystemError(L"setenv(GIO_USE_VFS)", errno)) << "\n"; + g_vfs_get_default(); //returns unowned GVfs* + #elif GTK_MAJOR_VERSION == 3 try { |