ghostwriter // "Running as root without --no-sandbox is not supported"(solved)

Moderator: Forum moderators

Post Reply
Cachorrito
Posts: 3
Joined: Sat Mar 22, 2025 3:41 pm

ghostwriter // "Running as root without --no-sandbox is not supported"(solved)

Post by Cachorrito »

I am new to Puppy and run into some problems with installing an app I had used before on regular Debian without any issues—so I guess, it might be a "newbie on Puppy"-problem;)

1) I am on BookwormPup64 10.0.10 and have installed Ghostwriter https://ghostwriter.kde.org/ plus the required packages (e.g., Pandoc) via Synaptic.

2) While the app does show in the menu, it does not launch. When I try to run it as root, I get:

Code: Select all

# sudo ghostwriter
Using pandoc version 2.17.1.1
Using multimarkdown version 1.35
Using cmark version 0.30.2
[20905:20905:0322/182340.411027:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

The link provided in the error msg, does not help (at least for me)

3) Then I tried to run the app as non-root user: Now ghostwriter is running, but I can't save files due to missing permissions. The cli output:

Code: Select all

# su spot
# ghostwriter
QStandardPaths: runtime directory '/tmp/runtime-root' is not owned by UID 502, but a directory permissions 0700 owned by UID 0 GID 0
Failed to create /root/.cache for shader cache (Permission denied)---disabling.
Using pandoc version 2.17.1.1
Using multimarkdown version 1.35
Using cmark version 0.30.2
Cannot create directory /root/.local/share/ghostwriter/ghostwriter/QtWebEngine/Default. Error: FILE_ERROR_ACCESS_DENIED.
[22365:22386:0322/182557.350462:ERROR:disk_cache.cc(184)] Unable to create cache
[22365:22386:0322/182557.350500:ERROR:shader_disk_cache.cc(606)] Shader Cache Creation failed: -2

Any ideas?

Last edited by bigpup on Tue Mar 25, 2025 1:56 am, edited 1 time in total.
Reason: added solved
User avatar
Trapster
Posts: 228
Joined: Sat Aug 01, 2020 7:44 pm
Location: Texas
Has thanked: 2 times
Been thanked: 71 times

Re: ghostwriter // "Running as root without --no-sandbox is not supported"

Post by Trapster »

Have you tried:

Code: Select all

ghostwriter --no-sandbox
Cachorrito
Posts: 3
Joined: Sat Mar 22, 2025 3:41 pm

Re: ghostwriter // "Running as root without --no-sandbox is not supported"

Post by Cachorrito »

Trapster wrote: Sat Mar 22, 2025 5:44 pm

Have you tried:

Code: Select all

ghostwriter --no-sandbox

Yes, I did:

Code: Select all

ghostwriter: Unknown option 'no-sandbox'
radky
Posts: 377
Joined: Fri May 28, 2021 2:14 am
Has thanked: 42 times
Been thanked: 339 times

Re: ghostwriter // "Running as root without --no-sandbox is not supported"

Post by radky »

@Cachorrito

You could try running ghostwriter as a restricted user in the Puppy Spot environment.

run-as-spot ghostwriter

Ghostwriter should launch successfully and documents will be saved with correct permissions in the /root/spot/Documents folder.

There seems to be an issue with failed auto-backup of saved ghostwriter documents, but auto-backup can be disabled in Preferences.

If this works for you, consider editing the Exec line of /usr/share/applications/ghostwriter.desktop, so ghostwriter will open successfully from the menu.

Exec=run-as-spot ghostwriter %f

User avatar
bigpup
Moderator
Posts: 7512
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1021 times
Been thanked: 1682 times

Re: ghostwriter // "Running as root without --no-sandbox is not supported"

Post by bigpup »

To confirm above information works.

Installed ghostwriter by using Synaptic Package Manager.

Let it install whatever other stuff it also found needed.

Had to edit the file ghostwriter.desktop in location /usr/share/applications/ adding run-as-spot to exec=

To edit the file left click on it and it will open in a text editor.

Make edit and save the change.

Should start from menu ->Document ->ghostwriter

This is a normal requirement for programs that do not like to have root user run them.

Look in menu ->Help ->About root (administrator) and spot

This explains about spot user operation.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Trapster
Posts: 228
Joined: Sat Aug 01, 2020 7:44 pm
Location: Texas
Has thanked: 2 times
Been thanked: 71 times

Re: ghostwriter // "Running as root without --no-sandbox is not supported"

Post by Trapster »

Code: Select all

ghostwriter --no-sandbox

Does indeed work for me.

Attachments
2025-03-23_07-14.png
2025-03-23_07-14.png (96.1 KiB) Viewed 125 times
Cachorrito
Posts: 3
Joined: Sat Mar 22, 2025 3:41 pm

Re: ghostwriter // "Running as root without --no-sandbox is not supported"

Post by Cachorrito »

Thanks for all replies. The run-as-spot edit did the trick :)

hikohan
Posts: 48
Joined: Wed Mar 13, 2024 12:08 am
Has thanked: 8 times
Been thanked: 13 times

Re: ghostwriter // "Running as root without --no-sandbox is not supported"

Post by hikohan »

My favor Markdown utility

Markdown Viewer, Chrome/Firefox extension for online/offline markdown document viewer.

Feature:

  1. Color theme
  2. ToC support

Collab with Geany text editor and work MD writer perfect. :thumbup2:

Post Reply

Return to “BookwormPup”