depot/third_party/nixpkgs/pkgs/by-name/vy/vym/patches/0000-fix-zip-paths.diff
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

21 lines
706 B
Diff

diff -Naur source-old/src/main.cpp source-new/src/main.cpp
--- source-old/src/main.cpp 1969-12-31 21:00:01.000000000 -0300
+++ source-new/src/main.cpp 2022-10-23 22:30:00.463905363 -0300
@@ -286,13 +286,10 @@
// Platform specific settings
vymPlatform = QSysInfo::prettyProductName();
-#if defined(Q_OS_WINDOWS)
- // Only Windows 10 has tar. Older windows versions not supported.
- zipToolPath = "tar";
-#else
- zipToolPath = "/usr/bin/zip";
- unzipToolPath = "/usr/bin/unzip";
-#endif
+ // Nixpkgs-specific hack
+ zipToolPath = "@zipPath@";
+ unzipToolPath = "@unzipPath@";
+
iconPath = vymBaseDir.path() + "/icons/";
flagsPath = vymBaseDir.path() + "/flags/";