depot/third_party/nixpkgs/pkgs/applications/misc/vym/000-fix-zip-paths.diff
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01: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/";