mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
feat(wechat): native nixpkgs package with app-scoped data (#492)
Switch to the native deb package from nixpkgs-patched (#560225), remove the AppImage/FHS bwrap layer, and enable native Wayland while keeping the X11 fallback. Keep only WeChat state under one app-scoped HOME and bind the host Documents and Downloads directories like the other desktop apps. User-selected files also go through the XDG FileChooser portal. Remove the launcher, activation script, and compatibility symlinks. Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
30cb22500f
commit
ccffddc864
14 files changed
+49
-220
No files matched your search
@@ -27,14 +27,15 @@ in
|
||||
"org.freedesktop.DBus" = "talk";
|
||||
"org.kde.StatusNotifierWatcher" = "talk";
|
||||
}
|
||||
# SNI name is <pid>-<Qt tray instance ID>; WeChat 4.1.13 uses <pid>-2.
|
||||
# SNI name is <pid>-<Qt tray instance ID>. The PID is from the nixpak
|
||||
# namespace and varies with the inner AppImage/FHS startup chain.
|
||||
// builtins.listToAttrs (
|
||||
lib.concatMap (
|
||||
id:
|
||||
map (
|
||||
instance: lib.nameValuePair "org.kde.StatusNotifierItem-${toString id}-${toString instance}" "own"
|
||||
) (lib.range 1 5)
|
||||
) (lib.range 2 5)
|
||||
) (lib.range 1 10)
|
||||
) (lib.range 2 30)
|
||||
);
|
||||
})
|
||||
(lib.mkIf cfg.mpris {
|
||||
|
||||
Reference in new issue
Block a user