ITADN

Nyxt.app doesn't open more than once on MacOS

#3705Openzack466 创建于 2026-01-21
Z
zack466commented
First, I just want to express that I think Nyxt is super cool and I really appreciate all the work that has gone into making it work on MacOS. With version 4.0 out, I'm really excited to try using Nyxt as my daily driver. **Describe the bug** If I run Nyxt, close it, and open it again, then the window doesn't show up on subsequent runs. However, I think I know why. There appears to be a bug in the `apprun` script packaged with `Nyxt.app` for MacOS. If I cd into `Nyxt.app/Contents/MacOS` and view `apprun`, I see: ```zsh #!/bin/zsh cd "${0%/*}" # Set the PATH for Shared Libraries. export LD_LIBRARY_PATH="$PWD/../Frameworks" export DYLD_LIBRARY_PATH="$PWD/../Frameworks" # Set the APPDIR and the PATH. export APPDIR="$PWD" export PATH="$PWD/cl-electron-server.app/Contents/MacOS" # Delete old sockets from previous instances. rm -rf ~/Library/Caches/TemporaryItems/cl-electron/* ./nyxt ``` Since the script overwrites `PATH`, the `rm` command on the next line does not run, since it can't find the command `rm`. As a result, it never clears the old sockets, which appears to be the cause of the issue. If I `rm` the sockets manually after closing Nyxt, and I run Nyxt again, it seems to work fine. Also, if I change the line in the script to: ``` export PATH="$PWD/cl-electron-server.app/Contents/MacOS:$PATH" ``` then the issue is gone locally, and re-running the app multiple times works as expected. Also, this may be an unrelated issue, but if I quit Nyxt by right-clicking the icon on the taskbar and clicking "Quit" (or by pressing the red "x" in the top left corner of the GUI), then the app seems to close, but in Activity Monitor, there is still a `nyxt` that remains running until I manually force quit it. But if I close the app using the `quit` command in Nyxt (or `ctrl-q` on my machine), then the `nyxt` process does disappear after closing it. **Information** - OS Name+Version: MacOS Tahoe 26.2, aarch64 (M1 macbook) - Installation method (Flatpak, Guix, package manager, build from source): downloaded from [release](https://github.com/atlas-engineer/nyxt/releases/tag/4.0.0) - Output of Nyxt command `show-system-information`:
3 条评论