Upgrade to Ubuntu 25.04 do not respect x-terminal-emulator settings
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| xdg-terminal-exec (Ubuntu) |
Fix Released
|
Medium
|
Alessandro Astone | ||
| Plucky |
Won't Fix
|
Medium
|
Alessandro Astone | ||
Bug Description
[ Impact ]
In previous Ubuntu versions I just set x-terminal-emulator alternative to ghostty, and Gnome correctly launched the configured terminal with default shortcut of Ctrl+Alt+T.
After upgrading the system to a 25.04, Gnome 48 seems to ignore this setting, and launches default Gnome Terminal when shortcut is pressed.
That happens because Ubuntu Desktop 25.04 now uses `xdg-terminal-exec` to configure the user's default terminal application, which is an improvement over the previous `x-terminal-
The user configuration is not migrated from x-terminal-emulator to xdg-terminal-exec, so the user finds their default terminal reset to the default GNOME Terminal.
[ Test Plan ]
1. Install Ubuntu Desktop 24.10 or prior
2. Change the default terminal through x-terminal-emulator
3. Ensure that Ctrl+Alt+T launches the configured terminal application
4. Upgrade to Ubuntu 25.04
5. Install the xdg-terminal-exec update
5. Verify that Ctrl+Alt+T launches the same terminal application
[ Where problems could occur ]
This is implemented as a session-migration script.
The script is implemented with a defensive programming approach so that the xdg-terminal-exec configuration is written if and only if the user had previously changed the x-terminal-emulator config and did not already change the xdg-terminal-exec config.
Due to an issue with GNOME Terminal being too excited about setting itself as the default xdg-terminal-exec even before xdg-terminal-exec was used for launching the terminal in Ubuntu, the configuration will only be applied if both /usr/bin and $HOME live in filesystems which support the file creation timestamp (not necessarily the same one).
[ Other info ]
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: gnome-shell 48.0-1ubuntu1
ProcVersionSign
Uname: Linux 6.14.0-15-generic x86_64
NonfreeKernelMo
ApportVersion: 2.32.0-0ubuntu5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 14 13:46:12 2025
DisplayManager: gdm3
InstallationDate: Installed on 2022-04-28 (1082 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
RelatedPackageV
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to plucky on 2025-04-11 (3 days ago)
Related branches
- Sebastien Bacher: Pending requested
-
Diff: 122 lines (+88/-2)4 files modifieddebian/changelog (+6/-0)
debian/control (+4/-2)
debian/migrations (+1/-0)
debian/x-terminal-emulator-to-xdg-terminal-exec.sh (+77/-0)
| description: | updated |
| Changed in xdg-terminal-exec (Ubuntu Plucky): | |
| status: | New → In Progress |
| importance: | Undecided → Medium |
| assignee: | nobody → Alessandro Astone (aleasto) |
| milestone: | none → plucky-updates |
| Changed in xdg-terminal-exec (Ubuntu): | |
| milestone: | plucky-updates → ubuntu-25.10 |

This is somewhat intended, because now the default terminal emulator is handled by xdg-terminal-exec
Perhaps we should provide an upgrade path so that users don't lose their previous defaults?