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

[Discussion]How distrobox fix the cursor theme problem in container #1179

Open
shenmo7192 opened this issue Jan 31, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@shenmo7192
Copy link

I'm a primary programmar and i tried to learn how to code in bash from this project. I read the code of distrobox and tried to turn it to a Bubblewrap based container. However, when i tried to run the container, the cursor theme lost in GUI apps.

I use scripts like this

bwrap --dev-bind / / \
  bwrap \
  --setenv LANG "$LANG" \
  --setenv LC_COLLATE "$LC_COLLATE" \
  --setenv LC_CTYPE "$LC_CTYPE" \
  --setenv LC_MONETARY "$LC_MONETARY" \
  --setenv LC_MESSAGES "$LC_MESSAGES" \
  --setenv LC_NUMERIC "$LC_NUMERIC" \
  --setenv LC_TIME "$LC_TIME" \
  --setenv LC_ALL "$LC_ALL" \
  --setenv PULSE_SERVER /run/user/$uid/pulse/native \
  --setenv PATH /flamescion-container-tools/bin-override:$PATH \
  --setenv IS_ACE_ENV "1" \
  --dev-bind $chrootEnvPath/ / \
  --dev-bind-try /media /media \
  --dev-bind-try /tmp /tmp \
  --dev /dev  \
  --dev-bind-try /dev/dri /dev/dri  \
  --proc /proc  \
  --dev-bind /sys /sys  \
  --dev-bind /run /run  \
  --dev-bind-try /run/user/$uid/pulse /run/user/$uid/pulse  \
  --dev-bind / /host \
  --ro-bind-try /usr/share/themes /usr/local/share/themes  \
  --ro-bind-try /usr/share/icons /usr/local/share/icons  \
  --ro-bind-try /usr/share/fonts /usr/local/share/fonts  \
  --hostname Amber-CE-Bookworm \
  --unshare-uts \
  --dev-bind-try /etc/resolv.conf /etc/resolv.conf \
  --cap-add CAP_SYS_ADMIN \
  --dev-bind-try /home /home \
  bash -c "${container_command}"

https://gitee.com/amber-compatability-environment/bookworm-compatibility-mode/blob/master/src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bin/bookworm-run

I searched on google and stackoverflow about the cursor bug, but can not get anything related;also i can't find how distrobox fix this.....So i decide to ask for help

Sincerely wish help from you !

@shenmo7192 shenmo7192 added the question Further information is requested label Jan 31, 2024
@shenmo7192
Copy link
Author

I do find some issues like this but i think it is unrelated to this problem

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

No branches or pull requests

1 participant