Repository navigation
Conversation
…abled anyway if `checkModules()` is never run, there's no point in precreating the dir. fixes installation on readonly filesystems (bwrap from nixpkgs, flatpak, ...)
5 of 13 tasks
jemand771
added a commit
to jemand771/nixpkgs
that referenced
this pull request
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
if
checkModules()is never run, there's no point in precreating the dir. fixes installation on readonly filesystems (bwrap from nixpkgs, flatpak, ...)this is an (imo cleaner) alternative to #250 but achieves the same thing (cc @slimelia)