Skip to content

openasar: fix (patch) for readonly modules dir - #582751

Merged
gepbird merged 1 commit into
NixOS:masterfrom
jemand771:openasar-readonly-modules
Nov 4, 2026
Merged

gepbird merged 1 commit into
NixOS:masterfrom
jemand771:openasar-readonly-modules

Conversation

@jemand771

@jemand771 jemand771 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

upstream: GooseMod/OpenAsar#262

also see #580650, especially here for the non-OpenAsar variant of this

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested review from Scrumplex and jopejoe1 November 3, 2026 17:15
@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: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Nov 3, 2026
gepbird added a commit to gepbird/dotfiles that referenced this pull request Nov 3, 2026
Flake lock file updates:

• Added input 'nixpkgs-patch-discord-openasar-fix-launch':
    'NixOS/nixpkgs#582751'

@gepbird gepbird left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested discord with OpenASAR, works well, thanks!

Comment thread pkgs/by-name/op/openasar/package.nix Resolved
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Nov 3, 2026
@jemand771
jemand771 force-pushed the openasar-readonly-modules branch from e14976a to da85bfb Compare November 3, 2026 22:43
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Nov 3, 2026
VeilSilence added a commit to VeilSilence/OpenAsar that referenced this pull request Nov 4, 2026
On read-only installs (nix store under bwrap, flatpak) basePath points at a
directory the process cannot write: Discord's modules dir is staged as a
symlink into the nix store, and installed.json inside it is root-owned and
read-only. init() then ran fs.rmSync(downloadPath) + mkdir(downloadPath) and
got EROFS, threw out of app.whenReady().then(startUpdate), and the app never
reached splash.initSplash() -- the process tree lived on with no window,
which is what it looked like from the outside.

With SKIP_MODULE_UPDATE set (the nix module sets it) the purge is pointless:
checkModules() never runs, so pending/ is never used.

Upstream: GooseMod#262
Nixpkgs:  NixOS/nixpkgs#582751
VeilSilence added a commit to VeilSilence/OpenAsar that referenced this pull request Nov 4, 2026
On read-only installs (nix store under bwrap, flatpak) basePath points at a
directory the process cannot write: Discord's modules dir is staged as a
symlink into the nix store and installed.json inside it is root-owned. init()
then ran fs.rmSync(downloadPath) + mkdir(downloadPath), got EROFS, threw out
of app.whenReady().then(startUpdate), and the app never reached
splash.initSplash() -- the process tree lived on with no window.

With SKIP_MODULE_UPDATE set (what the nix module writes) the purge is
pointless: checkModules() never runs, so pending/ is never used.

Verified on Discord PTB 1.0.225a with modules/ symlinked into the nix store:
unfixed -> no window at all, fixed -> window at 20s.

Upstream: GooseMod#262
Nixpkgs:  NixOS/nixpkgs#582751
@gepbird
gepbird added this pull request to the merge queue Nov 4, 2026
Merged via the queue into NixOS:master with commit 83c414a Nov 4, 2026
27 checks passed
gepbird added a commit to gepbird/dotfiles that referenced this pull request Nov 5, 2026
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/095fef2f265c3c0da4fe315efba8f8a04495ab34' (2026-10-28)
  → 'github:nix-community/home-manager/b787c48e2ec57a9d098f5c2721882a3bc1e16f97' (2026-11-04)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/0bb2eedc20e4739f29e8045034f2828ad7054f8f' (2026-11-01)
  → 'github:NixOS/nixpkgs/1d060086d60cb76a40cf37109f979d88a5bd6396' (2026-11-03)
• Removed input 'nixpkgs-patch-bottom-0-15-0'
• Updated input 'nixpkgs-patch-discord-openasar-fix-launch':
    'NixOS/nixpkgs#582751'
  → 'NixOS/nixpkgs#582751'
• Removed input 'nixpkgs-patch-onlyoffice-fix-build'
• Updated input 'nur':
    'github:nix-community/NUR/118aab3a0826d198819a114a238268da005c2c58' (2026-11-02)
  → 'github:nix-community/NUR/9bec345cc2581b2931607d40b9a0de2f9bcf3955' (2026-11-05)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/60182817ee048ac94b4c68ea76d5ef2e8aac730d' (2026-10-26)
  → 'github:Mic92/sops-nix/b18e01ce148eb3efff5de2f2d3181ca53b2b2a54' (2026-11-02)
gepbird added a commit to tchfoo/raspi-dotfiles that referenced this pull request Nov 6, 2026
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/024633cd702b10285db5cb19b40ad48d2399ba60' (2026-10-01)
  → 'github:hercules-ci/flake-parts/ea2630b7470978622c7689a1ff75d2b389175399' (2026-11-01)
• Updated input 'gep-dotfiles':
    'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=3fab84685caeb9a4a983c7c87a1b846862a1b079' (2026-10-25)
  → 'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=b3f60aee4dca2a29af9b658939635c8317d0feac' (2026-11-05)
• Added input 'gep-dotfiles/nixpkgs-patch-discord-openasar-fix-launch':
    'NixOS/nixpkgs#582751'
• Updated input 'home-manager':
    'github:nix-community/home-manager/c216bf5a1f173b0481bd5c8c489ebe5595ecc68c' (2026-10-25)
  → 'github:nix-community/home-manager/b787c48e2ec57a9d098f5c2721882a3bc1e16f97' (2026-11-04)
• Updated input 'moe':
    'github:tchfoo/moe/78b62988bdba3852cf5946e0a3a418de7ef94df3' (2026-10-14)
  → 'github:tchfoo/moe/09da70ab3fb3e69d199db6f3ed421fa798363b37' (2026-10-27)
• Updated input 'nix-index-database':
    'github:nix-community/nix-index-database/93696586f3463024cceb089353539be95a38ae2b' (2026-10-25)
  → 'github:nix-community/nix-index-database/cee0f879d338cf08f814210fa6c2b280594ade0a' (2026-11-01)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/1b418b8f203e49a92f250f8babdd19af1b6f7a7f' (2026-10-22)
  → 'github:NixOS/nixos-hardware/d645c71a58dbae3eb17ff551a07aea13a541cb1a' (2026-11-05)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1c89083e451e891152365b799595cf7790a43325' (2026-10-30)
  → 'github:NixOS/nixpkgs/1d060086d60cb76a40cf37109f979d88a5bd6396' (2026-11-03)
• Added input 'nixpkgs-patch-atuin-fix-build':
    'NixOS/nixpkgs#582602'
• Updated input 'nixpkgs-patcher':
    'github:gepbird/nixpkgs-patcher/da7c09e478f552c3a9ebb78b2f68426c1855fd81' (2026-09-11)
  → 'github:gepbird/nixpkgs-patcher/e5f4b45fb4f0fc81dae025c173648cccbefca569' (2026-11-01)
• Updated input 'nur':
    'github:nix-community/NUR/c315b811c2a7ffe36b33119231124bb7f816d358' (2026-10-26)
  → 'github:nix-community/NUR/4db3d74452f668cedca53e4ba69f1116f72d937f' (2026-11-05)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/442449fa7b1fe6c692d0103ac9fc8f9e82931cf3' (2026-10-24)
  → 'github:Mic92/sops-nix/b18e01ce148eb3efff5de2f2d3181ca53b2b2a54' (2026-11-02)
• Updated input 'tangled-core':
    'git+https://tangled.org/tangled.org/core?ref=refs/heads/master&rev=e81ebb68352971820d206211eaaa4ef6eed550b2' (2026-11-05)
  → 'git+https://tangled.org/tangled.org/core?ref=refs/heads/master&rev=2668fb5a1b596be13cc464f4771f261dd86f7b8e' (2026-11-05)
• Updated input 'ymstnt-dotfiles':
    'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=6485475879a9f96fe6d3bf1192ccbc3ec12aa9d3' (2026-10-30)
  → 'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=12021ae2b9ac377b64c4a4e9e1923f6fca97b9f3' (2026-10-31)
gepbird added a commit to tchfoo/raspi-dotfiles that referenced this pull request Nov 7, 2026
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/12b7e3178c093a8af075f4a889238a2fffa3d0ef' (2026-11-04)
  → 'github:nix-community/fenix/5161c3b5239da76a876135d51ff91281daffd78e' (2026-11-07)
• Updated input 'gep-dotfiles':
    'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=b3f60aee4dca2a29af9b658939635c8317d0feac' (2026-11-05)
  → 'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=ce2ab12ebad7e24838c5e81fe73cc9f2d8d4cd3a' (2026-11-07)
• Removed input 'gep-dotfiles/nixpkgs-patch-discord-openasar-fix-launch'
• Added input 'gep-dotfiles/nixpkgs-patch-discord-vencord-1-15-16':
    'NixOS/nixpkgs#584169'
• Updated input 'home-manager':
    'github:nix-community/home-manager/b787c48e2ec57a9d098f5c2721882a3bc1e16f97' (2026-11-04)
  → 'github:nix-community/home-manager/2c0c1f01521469cf0271180c453c79782d53c2f6' (2026-11-06)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/d645c71a58dbae3eb17ff551a07aea13a541cb1a' (2026-11-05)
  → 'github:NixOS/nixos-hardware/1a8ff4f57ffe1f732beaa1db842247a381ea471d' (2026-11-07)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1d060086d60cb76a40cf37109f979d88a5bd6396' (2026-11-03)
  → 'github:NixOS/nixpkgs/f9a75f41be3a74eab55d3a7679d34ad6cc0da977' (2026-11-05)
• Updated input 'nur':
    'github:nix-community/NUR/4db3d74452f668cedca53e4ba69f1116f72d937f' (2026-11-05)
  → 'github:nix-community/NUR/319e5026c432e3af6f32123edd5d33d78b3d06e3' (2026-11-07)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/b18e01ce148eb3efff5de2f2d3181ca53b2b2a54' (2026-11-02)
  → 'github:Mic92/sops-nix/89a234ce2daf6e568a7d4b4fe250afdd23d84e20' (2026-11-06)
• Updated input 'tangled-core':
    'git+https://tangled.org/tangled.org/core?ref=refs/heads/master&rev=2668fb5a1b596be13cc464f4771f261dd86f7b8e' (2026-11-05)
  → 'git+https://tangled.org/tangled.org/core?ref=refs/heads/master&rev=f70c71c7696a1cb0caaf472cca950bbbc74f174f' (2026-11-07)
• Updated input 'ymstnt-dotfiles':
    'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=12021ae2b9ac377b64c4a4e9e1923f6fca97b9f3' (2026-10-31)
  → 'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=e17055166f363d0b988c1a9dc0cac10a4bfc6e96' (2026-11-07)
• Added input 'ymstnt-dotfiles/nixpkgs-patch-discord-openasar-fix-launch':
    'NixOS/nixpkgs#582751'
• Added input 'ymstnt-dotfiles/nixpkgs-patch-discord-vencord-1-15-16':
    'NixOS/nixpkgs#584169'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package 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. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants