summary refs log tree commit diff
path: root/pkgs/applications/virtualization/virtualbox/qt-env-vars.patch
blob: ad1d1fd11f87b5c2845a691467f2b32d0693d6e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp
+++ b/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp
@@ -2131,6 +2131,11 @@ static void supR3HardenedMainPurgeEnvironment(char **envp)
         /** @todo Call NT API to do the same. */
 #endif
     }
+
+    /*
+     * NixOS hack: Set QT_PLUGIN_PATH to make Qt find plugins.
+     */
+    setenv("QT_PLUGIN_PATH", "@qtPluginPath@", /*overwrite=*/ 1);
 }