distrobox icon indicating copy to clipboard operation
distrobox copied to clipboard

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

Open shenmo7192 opened this issue 5 months ago • 1 comments

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 avatar Jan 31 '24 03:01 shenmo7192