Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chromium does not work with nsdo #16

Open
vstoykovbg opened this issue Sep 26, 2024 · 2 comments
Open

chromium does not work with nsdo #16

vstoykovbg opened this issue Sep 26, 2024 · 2 comments

Comments

@vstoykovbg
Copy link

This was working:

#!/bin/bash
unset GTK_IM_MODULE
nsdo tornamespace1 chromium --temp-profile --incognito

But recently it does not:

[123989:123989:0926/205657.708350:ERROR:ozone_platform_x11.cc(244)] Missing X server or $DISPLAY
[123989:123989:0926/205657.708391:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.

I found a workaround using Xephyr but it's not pretty.

nsdo tornamespace1 ./stage2.bash

stage2.bash:

#!/bin/bash

unset GTK_IM_MODULE
unset QT_IM_MODULE
unset XMODIFIERS

Xephyr -br -ac -noreset -screen 1600x900 :26 &

export DISPLAY=:26
sleep 1
DISPLAY=:26 fluxbox &

DISPLAY=:26 exec chromium --temp-profile --incognito 

Probably the problem is related with that chromium is from a snap package, not a classic install.

@vstoykovbg
Copy link
Author

After installing chromium-browser with apt-get install and messing it up, then multiple attempts to uninstall and install it again with snap install chromium it finally works.

I don't know why. It works with chromium-browser package uninstalled and chromium installed with snap.

@vstoykovbg
Copy link
Author

vstoykovbg commented Nov 16, 2024

Yesterday it stopped working, started working after chromum update. Today it does not work. Tried to logout/login at gdm3, no effect.

I can run Chromium outside the namespace normally.

After snap remove chromium and snap install chromium it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant