mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
committed by
github-actions[bot]
parent
b96631d9dc
commit
f065c1feec
15
pkgs/by-name/an/anytype/0003-remove-desktop-entry.patch
Normal file
15
pkgs/by-name/an/anytype/0003-remove-desktop-entry.patch
Normal 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');
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user