Skip to content

Hardcoded path to Electron #3717

Description

@M-II-R

A problem:
After Nyxt is compiled, it tries to use Electron supposing that it's located on the same place it was while building. After removing/renaming build folder, Nyxt can't be launched. For example, I have built it in /tmp/nyxt-buildfiles/arch/.

Steps to reproduce the issue

  1. Build Nyxt (it's easier using scripts in my repo: https://codeberg.org/M-II-R/nyxt-buildfiles/)
  2. Remove or rename build directory.
  3. Launch Nyxt.

Information

  • OS Name+Version:
    Arch Linux, kernel release 7.0.9.
  • Installation method (Flatpak, Guix, package manager, build from source):
    Build from source, then install with Pacman.
  • Nyxt output while launching Electron:
Nyxt version 4
<INFO> [22:10:31] Source location: #P"/tmp/nyxt-buildfiles/arch/src/nyxt/"
<INFO> [22:10:31] Loading Lisp file #P"/home/Miros/.config/nyxt/auto-config.4.lisp".
<INFO> [22:10:31] Listening to socket: #P"/run/user/1000/nyxt/nyxt.socket"

> cl-electron-server@0.0.1 start
> electron --enable-features=UseOzonePlatform --ozone-platform=wayland /tmp/nyxt-buildfiles/arch/src/nyxt/_build/cl-electron/source/server.js /run/user/1000/cl-electron/electron.socket protocol.registerSchemesAsPrivileged([{scheme:'nyxt',privileges:{}}, {scheme:'nyxt-resource',privileges:{secure:true}}, {scheme:'lisp',privileges:{supportFetchAPI:true,corsEnabled:true}}, {scheme:'view-source',privileges:{}}, {scheme:'gopher',privileges:{}}, {scheme:'gemini',privileges:{}}]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions