anytype: fix desktop entry

(cherry picked from commit 25b3f18c18)
This commit is contained in:
xmnlz
2026-04-29 01:28:09 +02:00
committed by github-actions[bot]
parent b96631d9dc
commit f065c1feec
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
diff --git a/electron/js/util.js b/electron/js/util.js
index da18f41ad0..bb07ec9f21 100644
--- a/electron/js/util.js
+++ b/electron/js/util.js
@@ -314,7 +314,9 @@ class Util {
if (!is.linux) {
return;
};
-
+ // NixOS: desktop entries are managed by the package, avoid
+ // writing user-local anytype.desktop which goes stale on updates
+ return;
const { execFile } = require('child_process');
const home = process.env.HOME || '';
const dataHome = process.env.XDG_DATA_HOME || path.join(home, '.local', 'share');

View File

@@ -57,6 +57,7 @@ buildNpmPackage (finalAttrs: {
patches = [
./0001-feat-update-Disable-auto-checking-for-updates-and-updating-manually.patch
./0002-remove-grpc-devtools.patch
./0003-remove-desktop-entry.patch
];
buildPhase = ''