rquint
Posts: 61
Joined: Fri May 25, 2018 12:49 am
Location: San Buenaventura

Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sat Dec 09, 2023 1:17 am

I have several desktop files pinned to the Dash which open applications in Gnome terminals. On Intel based PCs (and in previous versions of Ubuntu on a Pi) clicking on the icon in the Dash opens a terminal and places an indicator dot next to the icon in the Dash. However on a Pi4 running Ubuntu 23.10 a terminal opens, but a new icon for gnome-terminal-server with an accompanying dot is created on the Dash. Here is one of the .desktop files.

Code: Select all

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=StopWatch
Icon=StopWatch
Name[en_US]=StopWatch
Name=StopWatch
Exec=gnome-terminal --class=StopWatchTerminal -- /home/rquint/.local/bin/StopWatch
StartupWMClass=StopWatchTerminal
Has anyone else encountered this behaviour? Know of a fix?

User avatar
kerry_s
Posts: 7103
Joined: Thu Jan 30, 2020 7:14 pm

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sat Dec 09, 2023 1:38 am

Know of a fix?
use 22.04lts :lol:

rquint
Posts: 61
Joined: Fri May 25, 2018 12:49 am
Location: San Buenaventura

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sat Dec 09, 2023 1:47 am

But to go where no sane man or woman has gone before ...

User avatar
kerry_s
Posts: 7103
Joined: Thu Jan 30, 2020 7:14 pm

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sat Dec 09, 2023 2:20 am

does it do the same if terminal true

Code: Select all

[Desktop Entry]
Type=Application
Terminal=true
Icon=StopWatch
Name=StopWatch
Exec=StopWatch
StartupWMClass=StopWatch

rquint
Posts: 61
Joined: Fri May 25, 2018 12:49 am
Location: San Buenaventura

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sat Dec 09, 2023 3:51 am

Back in the day setting

Code: Select all

Terminal=true
would cause a second blank terminal to open behind the terminal with app. Just to check on the suggestion, I tried it on the Pi running 23.10 and I got two unwanted things---now there was a second blank terminal behind the one containing the app with the new gnome-terminal-server icon with the indicator dot. plus the terminal icon I have pinned to the Dash had an indicator dot for the blank terminal.

User avatar
kerry_s
Posts: 7103
Joined: Thu Jan 30, 2020 7:14 pm

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sat Dec 09, 2023 5:36 am

is stopwatch complicated
can you post it

rquint
Posts: 61
Joined: Fri May 25, 2018 12:49 am
Location: San Buenaventura

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sat Dec 09, 2023 6:37 am

Here is the stripped down version I've been using to test.

Code: Select all

#!/bin/bash
echo "STOP"
echo "Watch"
read

User avatar
kerry_s
Posts: 7103
Joined: Thu Jan 30, 2020 7:14 pm

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sat Dec 09, 2023 8:11 am

:lol:
i don't think i can help.
on both my gnome installs it's a single icon.

rpi4-4gb
raspberry os lite + gnome-core

amd laptop
ubuntu 22.04lts, with or without ubuntu dock. (i normally run vanilla, all ubuntu extensions off)

my rpi4-4gb is setup lite
Attachments
Screenshot from 2023-12-08 22-09-31.png
Screenshot from 2023-12-08 22-09-31.png (65.41 KiB) Viewed 1472 times

rquint
Posts: 61
Joined: Fri May 25, 2018 12:49 am
Location: San Buenaventura

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sat Dec 09, 2023 4:50 pm

Thanks for trying it. It's something to do with the 23.10 on the Pi. For me it works fine with 22.04 and 23.10 both on machines with Intel processors. I'll try to find an earlier version of Ubuntu for the Pi to test with. My, admittedly failing, memory is that using gnome-terminal in the Exec command of a desktop file worked as I expected.

rquint
Posts: 61
Joined: Fri May 25, 2018 12:49 am
Location: San Buenaventura

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Sun Dec 10, 2023 5:27 pm

I think it's time to move this over to AskUbuntu. The real application I'm trying to create a launcher for is SageMath's iPython terminal. StopWatch is just a convenient stand-in for testing how a script can be run in a terminal and be launched from a .desktop file. There is no problem in any version of Ubuntu on Intel machines. It is the Pi version. Admittedly, SageMath might be overkill on a Pi (it takes over 12 hours to build on a Pi4B) but I am just interested in how far I can push a Pi as an alternative Desktop PC.

User avatar
waveform80
Posts: 405
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Mon Dec 11, 2023 10:39 am

I have a feeling this is a Wayland issue (or something to do with the combination of Wayland and the version of Gnome under 23.10). I've been seeing something similar with certain applications under mantic (23.10), and switching back to Xorg resolves the issue. I tried the same with your example, and observed the same. It's a little tricky to test because Xorg is currently broken on 23.10 (but there's a work-around in the linked bug).

As regards the difference between PC and Pi, I don't think there is one: rather I suspect that on the PC under mantic you were logging into an Xorg session (where the issue doesn't manifest), while the Pi image defaults to a Wayland session (where the issue does occur). I don't think the issue occurs under jammy (22.04) at all (regardless of session type). I double-checked this with a mantic VM on a PC, but if you've still got a PC with mantic installed, it would be interesting to see if you can replicate the issue there under a Wayland login (when entering your password, select the option from the cog at the bottom right)?
Author of / contributor to a few pi related things (picamera, Sense HAT emulator, gpiozero, piwheels, etc.), and currently a software engineer at Canonical responsible for Ubuntu on the Raspberry Pi.

rquint
Posts: 61
Joined: Fri May 25, 2018 12:49 am
Location: San Buenaventura

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Mon Dec 11, 2023 4:47 pm

Bingo @waveform80. I switched to Wayland and my problematic behaviour appeared. I'll post your explanation at AskUbuntu.

User avatar
waveform80
Posts: 405
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK

Re: Launcher on behaves differently on Intel and Pi in Ubuntu 23.10

Mon Dec 11, 2023 6:13 pm

Ah, thanks for confirming that. And incidentally, thanks for providing a nice minimal test case -- I've added that to the bug I linked earlier in case it helps the desktop team figure out what's going on here!
Author of / contributor to a few pi related things (picamera, Sense HAT emulator, gpiozero, piwheels, etc.), and currently a software engineer at Canonical responsible for Ubuntu on the Raspberry Pi.

Return to “Ubuntu”