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

Gnome-terminal doesn't work #40

Closed
IanTrudel opened this issue Feb 21, 2020 · 24 comments
Closed

Gnome-terminal doesn't work #40

IanTrudel opened this issue Feb 21, 2020 · 24 comments

Comments

@IanTrudel
Copy link
Collaborator

IanTrudel commented Feb 21, 2020

Running Gnome-terminal (and vim) causes the following error:

# Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: 
  Error calling StartServiceByName for org.gnome.Terminal:
    GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: 
      Process org.gnome.Terminal exited with status 8
´´´
@redhog
Copy link
Owner

redhog commented Feb 21, 2020

Another docker dbus problem :(

@IanTrudel
Copy link
Collaborator Author

https://askubuntu.com/questions/608330/problem-with-gnome-terminal-on-gnome-3-12-2

Here they say locale is a problem. I'm usually using fr_CA.UTF8 and it causes all sort of problems including when using glass-action.

The following didn't fix gnome-terminal for me but selecting en_US.UTF-8 and restarting the WM did fix glass-action.

sudo apt install dconf-cli
dconf reset -f /org/gnome/terminal
sudo apt-get remove gnome-terminal
sudo apt-get install gnome-terminal
sudo apt-get install -y locales
sudo locale-gen --purge
sudo dpkg-reconfigure locales
reboot

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

That seems so buggy! It doesn't work with any UTF8 locale, just en_US?!

I mean, fair enough if it didn't like non-utf locales, but that's not the problem here?!

@IanTrudel
Copy link
Collaborator Author

So far it hasn't been working properly but I had updated my system's glibc to the latest version (uses UTF8 instead of UTF-8). I will try again with my locale but UTF-8 instead.

Not sure what the problem is for gnome-terminal but some apps (such as glass-action) didn't work otherwise. So clearly there are a few things to fix here.

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

All my python code is python 3, so it should theoretically be all unicode. Not that I have tested it much apart from window titles...

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

Btw, you're a good test user - you trigger all the bugs :P

Also on a totally different note: I've changed the tiling algorithm (WINDOWS+T). It's better, but not perfect yet,..

@IanTrudel
Copy link
Collaborator Author

All my python code is python 3, so it should theoretically be all unicode. Not that I have tested it much apart from window titles...

The bug is not in your python code.

Btw, you're a good test user - you trigger all the bugs :P

It's been a natural talent that got me into more troubles than I can count. :D

Also on a totally different note: I've changed the tiling algorithm (WINDOWS+T). It's better, but not perfect yet,..

Noticed already. Sometimes it does really well, some other times it puts everything on one side.

RE: gnome-terminal

https://wiki.gnome.org/Apps/Terminal/FAQ#Exit_status_8

RE: glass-action

So, I ran sudo dpkg-reconfigure locales, selected my locale, rebuilt the locales and restarted the WM. Glass-action now works without warning. It might be because I'm running a newer glibc where they decided to change UTF-8 into UTF8. Perhaps you could try with a Swedish or Norwegian locale and see if it needs to be fixed or not.

@IanTrudel
Copy link
Collaborator Author

Speaking of tiling...

image

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

That's the old tiling algorithm I think. The new one has a tendency to do a similar thing, but along the bottom edge... This is a hard problem (NP-complete), and getting a good heuristic for most cases is still hard...

@IanTrudel
Copy link
Collaborator Author

RE: Glass-action

Dockerfile needs the following:

RUN apt install -y locales
RUN apt install -y locales-all
RUN locale-gen en_US.UTF-8

@IanTrudel
Copy link
Collaborator Author

That's the old tiling algorithm I think. The new one has a tendency to do a similar thing, but along the bottom edge... This is a hard problem (NP-complete), and getting a good heuristic for most cases is still hard...

Window placement is somewhat a problem in InfiniteGlass. The terminal on startup is in the left corner but would be best a little more towards the center. Also, I have no idea how to bring to front a window and often an xterm is stuck at the back and I must move it to use it.

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

Initial window placement has its own ticket: #11

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

Added your locale lines to Dockerfile

@redhog redhog closed this as completed Feb 22, 2020
@IanTrudel
Copy link
Collaborator Author

Hmmm. It doesn't fix the gnome-terminal problem though. :)

We might perhaps need more gnome dependencies?

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

Feel free to experiment with what's needed inside the container and I'll add it to the dependency list.
Alternatively, try use mate-terminal? Might need the same though...

Maybe we should just do "apt install ubuntu-desktop"? It just means build is gonna be sloooow...

@IanTrudel
Copy link
Collaborator Author

Maybe we should just do "apt install ubuntu-desktop"? It just means build is gonna be sloooow...

This is exactly what I am doing right now. At least to know it can work in your WM. We can sift through packages needed later on.

@IanTrudel
Copy link
Collaborator Author

Well, it didn't help a bit. 1.3GB of dead weight. :)

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

:(

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

Can you run gnome-terminal outside the docker container? If so, you could forward the x socket out from the container... it's :100....

@IanTrudel
Copy link
Collaborator Author

I'm using gnome-terminal on my desktop. However, there are nice alternatives out there. I tried Terminology and it is absolutely great but it has a lot of dependencies. Sakura seems to be light and would certainly do. Have a try and pick one for docker. :D

@IanTrudel
Copy link
Collaborator Author

Interestingly, it seems that your WM does not support transparency. I usually set my terminal with some light transparency.

Sakura:
image

Terminology:
image

@IanTrudel
Copy link
Collaborator Author

Sakura should be the one we include in docker because Terminology has some issues in the menu and options. Little dependencies, good features and last release is 2019-08-12.

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

Hm... Transparency shouldn't be too hard to implement I think. I just don't know where the alpha channel comes from when you do CompositeRedirect... as in, I don't know how to read it out from the window... probably super easy, I just never checked.

@redhog
Copy link
Owner

redhog commented Feb 22, 2020

Moved to here: #45

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

2 participants