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

[GUI] Emacs launced from toolbox shell launch in terminal instead of in seperate window. #32

Open
emiljoha opened this issue May 14, 2021 · 4 comments

Comments

@emiljoha
Copy link

Summary

Opening GUI applications from within the toolbox does not work as expected. Not sure I there is a bug or if I am doing something wrong.

How to reproduce

  1. Create and enter a toolbox container with toolbox -u
  2. install emacs
  3. Start emacs from shell in terminal

What I expect to happen

Emacs launches in a seperate window just like if I start it from the desktop.

What actually happen

Emacs launches in "terminal mode".

What I have tried.

Fail to reproduce with another container image

I can not reproduce the issue with a fedora-toolbox container created like this.

$ toolbox create -i registry.fedoraproject.org/f34/fedora-toolbox:34 -c fedora
$ toolbox enter -c fedora 

Other GUI applications also misbehaving

Installing and running something like gedit from the opensuse/toolbox generate a window but with what looks like broken fonts.
gedit-from-toolbox

Versions

  • openSUSE MicroOS Desktop (20210512)
  • toolbox container image: opensuse/toolbox (snapshot 20210512 as well)
Information for package toolbox:
--------------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : toolbox
Version        : 2.1+git20210329.d14ac82-1.1
@thkukuk
Copy link
Collaborator

thkukuk commented May 17, 2021

I cannot reproduce any of your problems.
Are you sure the toolbox container you are using is a current one and not an older one which was still on disk?
Any "unusual" configurations/config files in your home directory pointing to things not part of the toolbox container?
All environment variables correct?

@emiljoha
Copy link
Author

Thanks for looking into it.

Are you sure the toolbox container you are using is a current one and not an older one which was still on disk?

Pretty sure, pulled the latest image and did a system update to both get 20210512. Checked the version in the /etc/os-release file in both container and base os. I have had that issue before that toolboxes started to behave weirdly when they became to out of sync with the base os.

Also tried again to update to the latest container image (20210517) no difference.

Any "unusual" configurations/config files in your home directory pointing to things not part of the toolbox container?
All environment variables correct?

Not that I know of. I just tested installing MicroOS Gnome Desktop 20210512 in a Boxes vm and I am seeing the same issue. (the container is now 20210517).

I am having some issues updating the VM to the latest version, will try to install another newer snapshot and try that.

This is really weird. The only "unusual" configuration I have in the VM is that I have it set to swedish language and keyboard. Can try to install it with English keyboard and language with the newer snapshot.... 🤷

@emiljoha
Copy link
Author

Tried again with the latest image 20210517 with toolbox 20210519 in a VM and I still see is. Only weird setting I have is swedish keyboard layout. Otherwise I tried to do everything as standard as possible.

Still having some weird selinux-autorelabel issue on first reboot in the VM will take a look and see if that is a known issue or else file a bug.

@dfaggioli
Copy link
Member

dfaggioli commented Jun 8, 2021

Tried again with the latest image 20210517 with toolbox 20210519 in a VM and I still see is. Only weird setting I have is swedish keyboard layout. Otherwise I tried to do everything as standard as possible.

I'm not sure about emacs, mostly because I don't use it and hence I have no idea what happens when you run emacs from a terminal outside of a toolbox.

About the broken fonts, yes, this is a known issue. You can fix it by installing fonts packages inside the container (with sudo zypper in <pkg>. Just doing something like zypper in xorg-x11-fonts-core should give you readable fonts in GUI apps launched from within the toolbox.

Still having some weird selinux-autorelabel issue on first reboot in the VM will take a look and see if that is a known issue or else file a bug.

Yes, that's also something that does not work for me, in recent snapshots. We surely want to fix it, but for now, I always install with SELinux disabled.

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

3 participants