Package Details: liteloader-qqnt-patcher 0.0.3-2

Git Clone URL: https://aur.archlinux.org/liteloader-qqnt-patcher.git (read-only, click to copy)
Package Base: liteloader-qqnt-patcher
Description: A patcher for LiteLoaderQQNT
Upstream URL: https://github.com/LiteLoaderQQNT/LiteLoaderQQNT
Licenses: MIT
Conflicts: linuxqq-appimage
Provides: liteloader-qqnt-patcher
Submitter: kobe-koto
Maintainer: kobe-koto
Last Packager: kobe-koto
Votes: 0
Popularity: 0.000000
First Submitted: 2025-11-21 21:21 (UTC)
Last Updated: 2026-04-11 18:15 (UTC)

Latest Comments

1 2 Next › Last »

kobe-koto commented on 2026-04-15 05:00 (UTC) (edited on 2026-04-15 05:00 (UTC) by kobe-koto)

@helloswx 是什么桌面环境?安装的 linuxqq 包是什么?

是否已经运行 setup_env 且重新登入?

如有,在终端中能正常运作时,LITELOADERQQNT_PROFILE 环境变量的值为?

如无,LITELOADERQQNT_PROFILE 为空吗?在终端中运行时使用的用户和在桌面环境中登入的用户一致吗?运行 setup_env 是否能改变 LITELOADERQQNT_PROFILE 的值?

helloswx commented on 2026-04-14 15:01 (UTC)

您好,我在使用时有一些问题。

修补后,在终端中运行 linuxqq 可以正常使用,不会报错。但若从菜单中(或从 .desktop 文件)运行 QQ 则会崩溃。

A JavaScript error occurred in the main process
Uncaught Exception:
Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/LiteLoaderQQNT/plugins'
    at Object.mkdirSync (node:fs:1364:26)
    at exports.scanPluginDirectory (/usr/lib/node_modules/LiteLoaderQQNT/src/main/store.js:102:8)
    at /usr/lib/node_modules/LiteLoaderQQNT/src/main/loader.js:46:36
    at Object.<anonymous> (/usr/lib/node_modules/LiteLoaderQQNT/src/main.js:7:1)
    at Module._compile (node:internal/modules/cjs/loader:1738:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1904:10)
    at Module.load (node:internal/modules/cjs/loader:1472:32)
    at Module._load (node:internal/modules/cjs/loader:1289:12)
    at l._load (node:electron/js2c/node_init:2:19293)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)

看起来是权限问题,不过有点奇怪。

kobe-koto commented on 2026-04-11 18:06 (UTC) (edited on 2026-04-11 18:32 (UTC) by kobe-koto)

hi @0don, thanks for the suggestions, i’ve made a few changes (v0.0.3-1):

  • You can now run sudo liteloader-qqnt-patcher set_alpmhook_patch to enable automatic patching. The default is still “notify‑only”.
  • The new sudo liteloader-qqnt-patcher setup_env creates /etc/profile.d/liteloader-qqnt.sh. You’ll need to delete it manually after uninstalling (if you want to).

Why I started with a “notify‑only” hook

While auto-patching is convenient (liteloader‑qqnt used to), it can be invasive and often fails for Flatpak/AppImage users or non-standard (?) installations. By splitting it into an optional setup, we keep the main package compliant with guidelines and safer for the average user. (sorry i used AI to polish this para)

also, as far as i know, environment.d files are just plain KEY=VALUE text and don’t support shell expansion, so they’re not ideal for setting a per‑user data‑store location. that’s why I went with profile.d instead

0don commented on 2026-04-11 01:05 (UTC)

Hi, I've put together some improvements that automate the manual steps still required after every QQ update:

  1. Hook auto-patches instead of just notifying. Changed Exec to run liteloader-qqnt-patcher upgrade directly.
  2. qq.desktop patching. QQ updates overwrite the desktop file, losing the LITELOADERQQNT_PROFILE env var. apply/upgrade now patches the Exec line automatically.
  3. LITELOADERQQNT_PROFILE env setup. apply creates /etc/environment.d/liteloaderqqnt.conf so the variable is set system-wide. post_remove cleans it up.
  4. post_install/post_upgrade auto-run the patcher. No more manual sudo liteloader-qqnt-patcher apply after install or upgrade.

Full changes: https://github.com/0-don/liteloader-qqnt-patcher

kobe-koto commented on 2026-03-07 08:30 (UTC)

@NhanchouBaiminh 感谢提醒,已经在 0.0.2-3 中修复了。

NhanchouBaiminh commented on 2026-02-22 14:21 (UTC) (edited on 2026-02-22 14:21 (UTC) by NhanchouBaiminh)

当前版本的 L22 中 install-D 参数选项会使得目标位置总是被创建为目录再写入其中,导致仍然需要输入 /usr/bin/liteloader-qqnt-patcher/liteloader-qqnt-patcher.sh 完整路径才能执行,建议去掉 D 参数选项

kobe-koto commented on 2026-02-12 18:17 (UTC)

@Xunflash 请更新到 0.0.2-2 fd08605

Xunflash commented on 2026-02-11 14:18 (UTC) (edited on 2026-02-11 14:18 (UTC) by Xunflash)

❯ liteloader-qqnt-patcher
zsh: 权限不够: liteloader-qqnt-patcher

❯ sudo liteloader-qqnt-patcher
sudo: liteloader-qqnt-patcher:找不到命令

❯ sudo /usr/bin/liteloader-qqnt-patcher/liteloader-qqnt-patcher.sh apply
--- Creating backup at /opt/QQ/resources/app/package.json.LLQQNT.bak
--- Patching /opt/QQ/resources/app/package.json...
>>> Patch applied successfully!

kobe-koto commented on 2026-01-17 15:44 (UTC)

@MoYingJi 感谢指出,已经在 0.0.2-2 fd08605 修正了。