Updated to Marktext v0.16.0.
@caleb Sent you an email.
| Git Clone URL: | https://aur.archlinux.org/marktext.git (read-only, click to copy) |
|---|---|
| Package Base: | marktext |
| Description: | A simple and elegant open-source markdown editor that focused on speed and usability |
| Upstream URL: | https://www.marktext.cc |
| Keywords: | editor electron markdown note |
| Licenses: | MIT |
| Submitter: | dopsi |
| Maintainer: | alerque |
| Last Packager: | alerque |
| Votes: | 28 |
| Popularity: | 1.00 |
| First Submitted: | 2018-05-01 08:22 (UTC) |
| Last Updated: | 2026-06-30 08:30 (UTC) |
Updated to Marktext v0.16.0.
@caleb Sent you an email.
Please build this using the Arch electron package as a dependency instead of bundling it. I realize this is a pain to get going at first but it is a much better outcome for systems that run it. I can probably contribute a patch to get it working if you add me as a co-maintainer.
THX @GitSquared for adopting and solving the problem! :)
@GitSquared That did it. Thanks!
@Maddix The latest builds of Chromium embedded into Electron have sandboxing enabled by default. On Linux this requires permission to run unprivileged containers in "User Namespaces". Most distros now default to allowing the use of this kernel features for all users, but the default used to be to only allow root to access it.
To enable user namespaces for non-root users (from ArchWiki):
sysctl kernel.unprivileged_userns_clone=1
Mark Text should work once you enable that.
I just upgraded my system and can't seem to get this to run without the --no-sandbox flag. I wonder if its my system has a configuration issue or if a package is missing.
I adopted this package and rewrote the PKGBUILD, releasing v0.15.1-3. I reduced the number of dependencies and cleaned up some other stuff.
Same error here!
When I'm executing the app I got this error:
App threw an error during load
Error: Module did not self-register.
at process.func (electron/js2c/asar.js:138:31)
at process.func [as dlopen] (electron/js2c/asar.js:138:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:922:18)
at Object.func (electron/js2c/asar.js:138:31)
at Object.func [as .node] (electron/js2c/asar.js:147:18)
at Module.load (internal/modules/cjs/loader.js:735:32)
at Module._load (internal/modules/cjs/loader.js:648:12)
at Module._load (electron/js2c/asar.js:715:26)
at Function.Module._load (electron/js2c/asar.js:715:26)
at Module.require (internal/modules/cjs/loader.js:775:19)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Module did not self-register.
at process.func (electron/js2c/asar.js:138:31)
at process.func [as dlopen] (electron/js2c/asar.js:138:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:922:18)
at Object.func (electron/js2c/asar.js:138:31)
at Object.func [as .node] (electron/js2c/asar.js:147:18)
at Module.load (internal/modules/cjs/loader.js:735:32)
at Module._load (internal/modules/cjs/loader.js:648:12)
at Module._load (electron/js2c/asar.js:715:26)
at Function.Module._load (electron/js2c/asar.js:715:26)
at Module.require (internal/modules/cjs/loader.js:775:19)
I just installed the last version of the package and got this error
App threw an error during load
Error: /usr/share/marktext/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node: cannot open shared object file: No such file or directory
at process.func (electron/js2c/asar.js:138:31)
at process.func [as dlopen] (electron/js2c/asar.js:138:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
at Object.func (electron/js2c/asar.js:138:31)
at Object.func [as .node] (electron/js2c/asar.js:147:18)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/usr/share/marktext/app.asar/node_modules/keyboard-layout/lib/keyboard-layout.js:4:35)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /usr/share/marktext/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node: cannot open shared object file: No such file or directory
at process.func (electron/js2c/asar.js:138:31)
at process.func [as dlopen] (electron/js2c/asar.js:138:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
at Object.func (electron/js2c/asar.js:138:31)
at Object.func [as .node] (electron/js2c/asar.js:147:18)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/usr/share/marktext/app.asar/node_modules/keyboard-layout/lib/keyboard-layout.js:4:35)
Pinned Comments
alerque commented on 2023-11-02 11:09 (UTC)
PSA: The build process for this package is known to be broken because it requires older versions of stuff than is available in Arch now. The only way I know of to install it is to use packages that were built back when the
npmin Arch was older. You can use my user repository to get the latest successful build.