Vfs: Shell integration is enabled optionally
authorChristian Kamm <mail@ckamm.de>
Wed, 23 Jan 2019 12:07:56 +0000 (13:07 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:38 +0000 (10:58 +0100)
Needs to be disabled for tests in some cases.

src/common/vfs.h

index f9f209e13fb3de1c7b12adf1eba11d6d857a8466..9db7edc9ccf1cffd49fea6fd34729383277cc9db 100644 (file)
@@ -53,6 +53,12 @@ struct OCSYNC_EXPORT VfsSetupParams
     /// Strings potentially passed on to the platform
     QString providerName;
     QString providerVersion;
+
+    /** Whether native shell integration shall be enabled
+     *
+     * For some plugins that doesn't work well in tests.
+     */
+    bool enableShellIntegration = true;
 };
 
 /** Interface describing how to deal with virtual/placeholder files.