File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
pkgs/by-name/de/detect-it-easy Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11diff --git a/XOptions/xoptions.cpp b/XOptions/xoptions.cpp
2- index ca5723e..30574a5 100755
2+ index 8c887c3..36cdbc3 100755
33--- a/XOptions/xoptions.cpp
44+++ b/XOptions/xoptions.cpp
5- @@ -1531 ,14 +1531 ,7 @@ bool XOptions::checkNative(const QString &sIniFileName)
5+ @@ -1754 ,14 +1754 ,7 @@ bool XOptions::checkNative(const QString &sIniFileName)
66 #if defined(Q_OS_MAC)
77 bResult = true;
88 #elif defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
99- QString sApplicationDirPath = qApp->applicationDirPath();
1010-
11- - if ((sApplicationDirPath == "/bin") || (sApplicationDirPath == "/usr/bin") || (sApplicationDirPath == "/usr/local/bin") ||
11+ - if ((sApplicationDirPath == "/bin") || (sApplicationDirPath == "/usr/bin") || (sApplicationDirPath == "/usr/local/bin") || (sApplicationDirPath == "/app/bin") ||
1212- (sApplicationDirPath.contains("/usr/local/bin$")) || isAppImage()) {
1313- bResult = true;
1414- } else {
@@ -18,7 +18,7 @@ index ca5723e..30574a5 100755
1818 #elif defined(Q_OS_WIN)
1919 QString sApplicationDirPath = qApp->applicationDirPath();
2020
21- @@ -1565 ,22 +1558 ,7 @@ QString XOptions::getApplicationDataPath()
21+ @@ -1788 ,22 +1781 ,7 @@ QString XOptions::getApplicationDataPath()
2222 #ifdef Q_OS_MAC
2323 sResult = sApplicationDirPath + "/../Resources";
2424 #elif defined(Q_OS_LINUX)
Original file line number Diff line number Diff line change 1313
1414stdenv . mkDerivation ( finalAttrs : {
1515 pname = "detect-it-easy" ;
16- version = "3.09 " ;
16+ version = "3.10 " ;
1717
1818 src = fetchFromGitHub {
1919 owner = "horsicq" ;
2020 repo = "DIE-engine" ;
2121 rev = finalAttrs . version ;
2222 fetchSubmodules = true ;
23- hash = "sha256-A9YZBlGf3j+uSefPiDhrS1Qtu6vaLm4Yodt7BioGD2Q =" ;
23+ hash = "sha256-yHgxYig5myY2nExweUk2muKbJTKN3SiwOLgQcMIY/BQ =" ;
2424 } ;
2525
2626 patches = [ ./0001-remove-hard-coded-paths-in-xoptions.patch ] ;
@@ -53,14 +53,14 @@ stdenv.mkDerivation (finalAttrs: {
5353
5454 # clean up wrongly created dirs in `install.sh` and broken .desktop file
5555 postInstall = ''
56- rm -r $out/lib/{bin,share}
5756 grep -v "Version=#VERSION#" $src/LINUX/die.desktop > $out/share/applications/die.desktop
5857 '' ;
5958
6059 meta = {
6160 description = "Program for determining types of files for Windows, Linux and MacOS." ;
6261 mainProgram = "die" ;
6362 homepage = "https://github.com/horsicq/Detect-It-Easy" ;
63+ changelog = "https://github.com/horsicq/Detect-It-Easy/blob/master/changelog.txt" ;
6464 maintainers = with lib . maintainers ; [ ivyfanchiang ] ;
6565 platforms = [ "x86_64-linux" ] ;
6666 license = lib . licenses . mit ;
You can’t perform that action at this time.
0 commit comments