Skip to content

kchat: replace AppImage wrapper with direct tarball packaging - #592704

Open
Vinetos wants to merge 1 commit into
NixOS:masterfrom
Vinetos:kchat-rework
Open

Vinetos wants to merge 1 commit into
NixOS:masterfrom
Vinetos:kchat-rework

Conversation

@Vinetos

@Vinetos Vinetos commented Nov 24, 2026

Copy link
Copy Markdown
Member

The AppImage wrapper leaves the app without working GPU acceleration: the bundled ANGLE libraries dlopen the system libEGL.so.1, which is not on their RUNPATH, so the GPU process exits. It also has no NIXOS_OZONE_WL opt-in and leaves GSettings schemas unreachable for the app's own gsettings calls.

Switch to the official electron-builder tar.gz artifact and wrap the bundled Electron binary directly (google-chrome / slack pattern; the app cannot run on nixpkgs' Electron because its bundled @jitsi/robotjs prebuild is ABI-pinned to Electron 37 and required top-level at startup):

  • NIXOS_OZONE_WL Wayland opt-in flags, as in mattermost-desktop
  • wrapGAppsHook3 args forwarded to the wrapper (GSettings schemas, GDK pixbuf loaders, GIO modules) and gsettings on PATH
  • appendRunpaths adds libglvnd to every RUNPATH: the EGL dlopen is made from bundled shared libraries, which runtimeDependencies (executables only) does not cover
  • register the desktop entry as com.infomaniak.chat with the kchat/ktalk deep-link schemes and a startup WM class
  • remove app-update.yml: updates are handled by Nix

Things done

The AppImage wrapper leaves the app without working GPU acceleration:
the bundled ANGLE libraries dlopen the system libEGL.so.1, which is
not on their RUNPATH, so the GPU process exits. It also has no
NIXOS_OZONE_WL opt-in and leaves GSettings schemas unreachable for
the app's own gsettings calls.

Switch to the official electron-builder tar.gz artifact and wrap the
bundled Electron binary directly (google-chrome / slack pattern;
the app cannot run on nixpkgs' Electron because its bundled
@jitsi/robotjs prebuild is ABI-pinned to Electron 37 and required
top-level at startup):

- NIXOS_OZONE_WL Wayland opt-in flags, as in mattermost-desktop
- wrapGAppsHook3 args forwarded to the wrapper (GSettings schemas,
  GDK pixbuf loaders, GIO modules) and gsettings on PATH
- appendRunpaths adds libglvnd to every RUNPATH: the EGL dlopen is
  made from bundled shared libraries, which runtimeDependencies
  (executables only) does not cover
- register the desktop entry as com.infomaniak.chat with the
  kchat/ktalk deep-link schemes and a startup WM class
- remove app-update.yml: updates are handled by Nix

Assisted-by: euria-code (Infomaniak) via OpenCode
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. llm-assisted Contributions that include code generation with LLMs 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Nov 24, 2026
@Vinetos Vinetos self-assigned this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant