Public bug reported:
Hi, in 22.10 beta there seem to be several problems with *desktop files
related to the gnome terminal. They cause misbehaviour of the Terminal
application with ubuntu dock.
There are two such files:
/usr/share/applications/org.gnome.Terminal.Preferences.desktop
/usr/share/applications/org.gnome.Terminal.desktop
I think the first one should be removed which solves all problems listed
below.
************************************
1) misbehaviour of Ubuntu Dock
************************************
The system, after upgrading to 22.10 experienced the following problem (see the
attached image for reference):
* the terminal app which was pinned as favorite into the dock (before the
upgrage) launched a terminal, but the terminal icon was duplicated in the
"non-favorite" section.
* mouse hover over "Terminal" in favorites (up) gave toolip "Terminal" and
* mouse hover over "terminal" in non-favorites (below) gives tooltip
"Preferences"
* If I remove the "Terminal" from favorites from Ubuntu Dock, no option to
"Pin/add to Favorites" of the terminal when right-clicking on its icon in the
non-favorite section.
************************************
2) syntax error in the *desktop file
************************************
file /usr/share/applications/org.gnome.Terminal.Preferences.desktop
seems to have a syntax error
lacki@machine: desktop-file-validate
/usr/share/applications/org.gnome.Terminal.Preferences.desktop
/usr/share/applications/org.gnome.Terminal.Preferences.desktop: error: file
contains key "SingleMainWindow" in group "Desktop Entry", but keys extending
the format should start with "X-"
I changed "SingleMainWindow" to "X-SingleMainWindow" and the message
went away.
************************************
3) duplication of functionality, likely a conflict
************************************
It seems to me that the file
/usr/share/applications/org.gnome.Terminal.Preferences.desktop duplicates the
functionality of the /usr/share/applications/org.gnome.Terminal.desktop
the latter has the section:
[Desktop Action preferences]
Name=Preferences
Exec=gnome-terminal --preferences
The former defines the application with
Exec=gnome-terminal --preferences
both have same WM_CLASS (Gnome-terminal).
I deleted the file
/usr/share/applications/org.gnome.Terminal.Preferences.desktop and the
terminal application behaves as every other icon
************************************
summary + proposed solution
************************************
To sum up I think that:
1) /usr/share/applications/org.gnome.Terminal.Preferences.desktop contains a
syntax error
2)/usr/share/applications/org.gnome.Terminal.Preferences.desktop should not be
included at all, as it conflicts with
)/usr/share/applications/org.gnome.Terminal.desktop
Removing file
/usr/share/applications/org.gnome.Terminal.Preferences.desktop from
/usr/share/applications/ and reloading desktop files solves all issues
above.
--------------------------------
gnome-terminal:
Installed: 3.46.1-2ubuntu1
Candidate: 3.46.1-2ubuntu1
Version table:
*** 3.46.1-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
100 /var/lib/dpkg/status
ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: gnome-terminal 3.46.1-2ubuntu1
ProcVersionSignature: Ubuntu 5.19.0-19.19-generic 5.19.7
Uname: Linux 5.19.0-19-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs zunicode zavl icp zcommon
znvpair
ApportVersion: 2.23.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 11 21:09:08 2022
EcryptfsInUse: Yes
SourcePackage: gnome-terminal
UpgradeStatus: Upgraded to kinetic on 2022-10-06 (5 days ago)
mtime.conffile..etc.apport.crashdb.conf: 2022-10-10T14:06:35.165176
** Affects: gnome-terminal (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug kinetic
** Attachment added: "double occurence of the Terminal icon."
https://bugs.launchpad.net/bugs/1992505/+attachment/5623107/+files/dock.png
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/1992505
Title:
several problems with *desktop files for gnome-terminal
Status in gnome-terminal package in Ubuntu:
New
Bug description:
Hi, in 22.10 beta there seem to be several problems with *desktop
files related to the gnome terminal. They cause misbehaviour of the
Terminal application with ubuntu dock.
There are two such files:
/usr/share/applications/org.gnome.Terminal.Preferences.desktop
/usr/share/applications/org.gnome.Terminal.desktop
I think the first one should be removed which solves all problems
listed below.
************************************
1) misbehaviour of Ubuntu Dock
************************************
The system, after upgrading to 22.10 experienced the following problem (see
the attached image for reference):
* the terminal app which was pinned as favorite into the dock (before the
upgrage) launched a terminal, but the terminal icon was duplicated in the
"non-favorite" section.
* mouse hover over "Terminal" in favorites (up) gave toolip "Terminal" and
* mouse hover over "terminal" in non-favorites (below) gives tooltip
"Preferences"
* If I remove the "Terminal" from favorites from Ubuntu Dock, no option to
"Pin/add to Favorites" of the terminal when right-clicking on its icon in the
non-favorite section.
************************************
2) syntax error in the *desktop file
************************************
file /usr/share/applications/org.gnome.Terminal.Preferences.desktop
seems to have a syntax error
lacki@machine: desktop-file-validate
/usr/share/applications/org.gnome.Terminal.Preferences.desktop
/usr/share/applications/org.gnome.Terminal.Preferences.desktop: error: file
contains key "SingleMainWindow" in group "Desktop Entry", but keys extending
the format should start with "X-"
I changed "SingleMainWindow" to "X-SingleMainWindow" and the message
went away.
************************************
3) duplication of functionality, likely a conflict
************************************
It seems to me that the file
/usr/share/applications/org.gnome.Terminal.Preferences.desktop duplicates the
functionality of the /usr/share/applications/org.gnome.Terminal.desktop
the latter has the section:
[Desktop Action preferences]
Name=Preferences
Exec=gnome-terminal --preferences
The former defines the application with
Exec=gnome-terminal --preferences
both have same WM_CLASS (Gnome-terminal).
I deleted the file
/usr/share/applications/org.gnome.Terminal.Preferences.desktop and
the terminal application behaves as every other icon
************************************
summary + proposed solution
************************************
To sum up I think that:
1) /usr/share/applications/org.gnome.Terminal.Preferences.desktop contains a
syntax error
2)/usr/share/applications/org.gnome.Terminal.Preferences.desktop should not
be included at all, as it conflicts with
)/usr/share/applications/org.gnome.Terminal.desktop
Removing file
/usr/share/applications/org.gnome.Terminal.Preferences.desktop from
/usr/share/applications/ and reloading desktop files solves all
issues above.
--------------------------------
gnome-terminal:
Installed: 3.46.1-2ubuntu1
Candidate: 3.46.1-2ubuntu1
Version table:
*** 3.46.1-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
100 /var/lib/dpkg/status
ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: gnome-terminal 3.46.1-2ubuntu1
ProcVersionSignature: Ubuntu 5.19.0-19.19-generic 5.19.7
Uname: Linux 5.19.0-19-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs zunicode zavl icp zcommon
znvpair
ApportVersion: 2.23.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 11 21:09:08 2022
EcryptfsInUse: Yes
SourcePackage: gnome-terminal
UpgradeStatus: Upgraded to kinetic on 2022-10-06 (5 days ago)
mtime.conffile..etc.apport.crashdb.conf: 2022-10-10T14:06:35.165176
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1992505/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp