Skip to content

Fix missing icons when started with Ctrl-Alt-T#628

Merged
mattrose merged 1 commit intognome-terminator:masterfrom
MihaiBabiac:fix-desktop-file-not-found
Oct 30, 2022
Merged

Fix missing icons when started with Ctrl-Alt-T#628
mattrose merged 1 commit intognome-terminator:masterfrom
MihaiBabiac:fix-desktop-file-not-found

Conversation

@MihaiBabiac
Copy link
Contributor

By default, GTK sets the prgname to argv[0], which is then used to choose the correct .desktop file. If the program is run through a symlink, such as through /etc/alternatives/x-terminal-emulator, argv[0] is not terminator so under Wayland the desktop file is not detected, leading to a missing icon.

Possibly fixes these issues:
https://askubuntu.com/questions/1218884/terminator-does-not-add-to-dock-icon-when-opened-via-ctrlaltt
https://bugs.launchpad.net/terminator/+bug/1726525

By default, GTK sets the prgname to argv[0], which is then used to
choose the correct .desktop file. If the program is run through a
symlink, such as through `/etc/alternatives/x-terminal-emulator`,
argv[0] is not `terminator` so under Wayland the desktop file is not
detected, leading to a missing icon.
@MihaiBabiac MihaiBabiac changed the title Add program name to fix missing icons Fix missing icons when started with Ctrl-Alt-T Jul 29, 2022
@francocm
Copy link

Tested on a fresh Ubuntu 22.04.1 install and works as expected.

@Vulcalien Vulcalien added the bug Something isn't working label Oct 19, 2022
@mattrose
Copy link
Member

Thanks for tracking this down! I've been trying to track down the cause for this for a while

@mattrose mattrose merged commit 6f99890 into gnome-terminator:master Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants