gnome-terminal thinks it is byobu (under LXQt)

Bug #1814407 reported by decimus
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu (Ubuntu)
Expired
Undecided
Unassigned
lxqt-panel (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

This is a very similar case to "gnome-terminal thinks it's Byobu Terminal", see https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/1512498 . Just that this time it does not affect the default Ubuntu desktop environment, but only LXQt, the Lubuntu 18.10 desktop environment which I installed on top of Ubuntu 18.10. (Since the byobu package is the same for Ubuntu, I though this would be the best place to report.)

When typing gnome-terminal into the LXQt launcher (Alt+F2), gnome-terminal will appear with the byobu icon on it, and when executing gnome-terminal from there, byobu terminal will start instead.

When moving the desktop file /usr/share/applications/byobu.desktop away, this behavior is instantly fixed.

lsb_release -rd
Ubuntu 18.10

apt-cache policy byobu
5.127-0ubuntu1

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi decimus,
thank you for your report to make Ubuntu better.
Unfortunately .desktop files sometimes are like a dark mystery to me, I don't see how the file

ll /usr/share/applications/byobu.desktop
lrwxrwxrwx 1 root root 42 Jan 31 03:09 /usr/share/applications/byobu.desktop -> /usr/share/byobu/desktop/byobu.desktop.old*

cat /usr/share/byobu/desktop/byobu.desktop.old
[Desktop Entry]
Name=Byobu Terminal
Comment=Advanced Command Line and Text Window Manager
Icon=byobu
Exec=env TERM=xterm-256color byobu
Terminal=true
Type=Application
Categories=GNOME;GTK;Utility;
X-GNOME-Gettext-Domain=byobu

could cause the issue you describe.
But hearing that moving it away immediately fixes it means it is related.

I subscribed didrocks who uploaded the last fix and also has a much better understanding of the Desktop.
Hoping he might be able to help here ...

Revision history for this message
decimus (h-matthias-u) wrote :

I should have included the file as well. Unlike for you, /usr/share/applications/byobu.desktop was a file on my system and not a symlink. And the content was different:

cat /usr/share/byobu/desktop/byobu.desktop.old

[Desktop Entry]
Name=Byobu Terminal
Comment=Advanced Command Line and Text Window Manager
Icon=byobu
Exec=gnome-terminal --app-id us.kirkland.terminals.byobu --class=us.kirkland.terminals.byobu -e byobu
Type=Application
Categories=GNOME;GTK;System;Utility;TerminalEmulator;
StartupWMClass=us.kirkland.terminals.byobu
X-GNOME-Gettext-Domain=byobu

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Hey!

I think the issue is on LXQt and desktop detection itself. It should honor "StartupWMClass=" and not rely only on the binary which is ran (which is gnome-terminal, hence the confusion for this desktop).

I'm unsure though which LXQt component is handling desktop detection. Feel free to retarget to the correct one.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks didrocks, not knowing any better I've filed it against the lxqt-metapackages assuming that LXQt packagers will sooner or later re-task it to the right component in LXQt

Changed in byobu (Ubuntu):
status: New → Incomplete
Simon Quigley (tsimonq2)
affects: lxqt-metapackages (Ubuntu) → lxqt-panel (Ubuntu)
Revision history for this message
apt-ghetto (apt-ghetto) wrote :

Hi,

I was unable to reproduce this bug on an up-to-date Lubuntu 19.04. But then I tried it also on an up-to-date Lubuntu 18.10 and found out, that this bug is reproducible under certain circumstances. Additionally I used also xprop WM_CLASS:

On 18.10:
  - install first gnome-terminal and in a second step byobu
    Using lxqt-runner it opens byobu in a gnome-terminal
    Using lxqt-runner you cannot open gnome-terminal, because it is not suggested
      WM_CLASS(STRING) = "gnome-terminal-server", "us.kirkland.terminals.byobu"
  - install first byobu and in a second step gnome-terminal
    Using lxqt-runner it opens byobu in a qterminal
    Using lxqt-runner it opens gnome-terminal
      WM_CLASS(STRING) = "qterminal", "qterminal"
      WM_CLASS(STRING) = "gnome-terminal-server", "Gnome-terminal"

On 19.04:
  - install first gnome-terminal and in a second step byobu
    Using lxqt-runner it opens byobu in a gnome-terminal
    Using lxqt-runner you can open also gnome-terminal
      WM_CLASS(STRING) = "gnome-terminal-server", "us.kirkland.terminals.byobu"
      WM_CLASS(STRING) = "gnome-terminal-server", "Gnome-terminal"
    Ergo: It is not reproducible
  - install first byobu and in a second step gnome-terminal
    Using lxqt-runner it opens byobu in a qterminal
      WM_CLASS(STRING) = "qterminal", "qterminal"
      WM_CLASS(STRING) = "gnome-terminal-server", "Gnome-terminal"

On 18.10, installing first gnome-terminal and then byobu: if you purge gnome-terminal, byobu doesn't work anymore.

Revision history for this message
apt-ghetto (apt-ghetto) wrote :

Setting to incomplete, because 18.10 is out of support and with 19.04 I could not reproduce it.

Changed in lxqt-panel (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for lxqt-panel (Ubuntu) because there has been no activity for 60 days.]

Changed in lxqt-panel (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for byobu (Ubuntu) because there has been no activity for 60 days.]

Changed in byobu (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.