Bug 44871 - Не отображаются значки, закрепленные на панели задач при наличии нескольких комнат
Summary: Не отображаются значки, закрепленные на панели задач при наличии нескольких к...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: firefox (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on: 44503
Blocks:
  Show dependency tree
 
Reported: 2023-01-10 14:56 MSK by obidinog@basealt.ru
Modified: 2024-04-03 18:28 MSK (History)
12 users (show)

See Also:


Attachments
скрин (497.05 KB, image/png)
2023-01-10 14:56 MSK, obidinog@basealt.ru
no flags Details
Не отображается иконка приложения Firefox при запуске (521.28 KB, image/png)
2023-08-01 16:11 MSK, Олег Щавелев
no flags Details
Вернул изображение ярлыка на экранах обзора и в доке сессии Wayland (622.32 KB, image/png)
2023-09-16 01:38 MSK, Олег Щавелев
no flags Details
Fireox generic ico GNOME 44 (1.16 MB, image/png)
2023-09-16 12:21 MSK, Roman Alifanov
no flags Details
видео (1.55 MB, video/x-matroska)
2023-12-25 12:47 MSK, Tatyana Gagina
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description obidinog@basealt.ru 2023-01-10 14:56:24 MSK
Created attachment 12246 [details]
скрин

Платформы:
education-10-x86-64-kde
kworkstation-10.1-x86-64

Пакет:
plasma5-workspace 5.26.4-alt5

Шаги:
1) Запустить firefox или thunderbird
2) ПКМ по панели >> Закрепить на панели задач
3) Закрыть firefox или thunderbird

Результат:
Иконки приложений не отображаются.(см.скрин)
Comment 1 Tatyana Gagina 2023-02-21 10:59:28 MSK
Ошибка не воспроизводится (на Sisyphus). 
Версия: plasma5-workspace-5.26.5-alt8

Также проверялось на p10, ошибка не воспроизводится.
Версия: 5.26.5-alt3
Comment 2 obidinog@basealt.ru 2023-03-07 10:25:25 MSK
Версия: plasma5-workspace-5.26.5-alt8
Платформы: kworkstation-10.1-x86-64

Воспроизводится, если комнат больше чем 1. 

Шаги:
1)Параметры системы > Рабочая среда >  Комнаты > Создать комнату
2)Запустить firefox или thunderbird
3)ПКМ по панели >> Закрепить на панели задач
4)Закрыть firefox или thunderbird
Comment 3 Sergey V Turchin 2023-03-07 10:51:08 MSK
launchers=applications:chromium-gost.desktop,file:///usr/bin/firefox,applications:kf5-org.kde.konsole.desktop,applications:libreoffice-writer.desktop
Исходя из конфига Plasma можно сделать вывод, что у Firefox что-то неправильное.
Возможно, достаточно сравнить desktop-файлы с другими дистрибутивами.
Comment 4 Sergey V Turchin 2023-03-07 16:16:15 MSK
(Ответ для Sergey V Turchin на комментарий #3)
> Возможно, достаточно сравнить desktop-файлы
Из замеченного сходу -- отсутствует StartupWMClass
Comment 5 Олег Щавелев 2023-08-01 16:11:59 MSK
Created attachment 13961 [details]
Не отображается иконка приложения Firefox при запуске
Comment 6 Олег Щавелев 2023-08-01 16:12:49 MSK
Не отображается иконка приложения в Dash-панели и в окне приложения в Wayland сессии при запуске приложения, в Xorg-сессии отображается.

Платформа: ALT Regular Sisyphus x86_64
DE: GNOME 44.3

Шаги:
1) Авторизоваться в Wayland-сессии при входе в GDM
2) Запустить приложения из панели приложений.

Версия: firefox-115.0.2-alt1.x86_64
Comment 7 Roman Alifanov 2023-09-15 23:08:55 MSK
(Ответ для Sergey V Turchin на комментарий #3)
> launchers=applications:chromium-gost.desktop,file:///usr/bin/firefox,
> applications:kf5-org.kde.konsole.desktop,applications:libreoffice-writer.
> desktop
> Исходя из конфига Plasma можно сделать вывод, что у Firefox что-то
> неправильное.
> Возможно, достаточно сравнить desktop-файлы с другими дистрибутивами.
https://bugzilla.altlinux.org/show_bug.cgi?id=44503#c1

Решается переименованием файла firefox.desktop в firefox-default.desktop. 
Мне помогло на Sisyphus с GNOME 44
Comment 8 Олег Щавелев 2023-09-16 01:38:55 MSK
Created attachment 14448 [details]
Вернул изображение ярлыка на экранах обзора и в доке сессии Wayland

При копировании и переименовании desktop-файла, после запуска приложения ярлык отображается с иконкой в сессии Wayland

cp /usr/share/applications/firefox.desktop ~/.local/share/applications/firefox-default.desktop 

Прошу внести изменения в spec-файл, для отображения ярлыка после установки пакета Firefox
Comment 9 Alexey Gladkov 2023-09-16 11:53:18 MSK
(In reply to Олег Щавелев from comment #8)
> Created attachment 14448 [details]
> Вернул изображение ярлыка на экранах обзора и в доке сессии Wayland
> 
> При копировании и переименовании desktop-файла, после запуска приложения
> ярлык отображается с иконкой в сессии Wayland
> 
> cp /usr/share/applications/firefox.desktop
> ~/.local/share/applications/firefox-default.desktop 

Поясните, почему нужно такое переименование для отображения где-либо ?
Если переименовать файл в /usr/share/applications, он тоже начнёт отображаться ?

Кроме того, данное переименовывание опровергает комментарий Сергея:

(In reply to Sergey V Turchin from comment #3)
> launchers=applications:chromium-gost.desktop,file:///usr/bin/firefox,
> applications:kf5-org.kde.konsole.desktop,applications:libreoffice-writer.
> desktop
> Исходя из конфига Plasma можно сделать вывод, что у Firefox что-то
> неправильное.
> Возможно, достаточно сравнить desktop-файлы с другими дистрибутивами.

То есть получается desktop файл (взятый из fedora) всё-таки правильный,
раз его переименование меняет ситуацию. Если бы с firefox.desktop
было что-то не так внутри, то он бы не читался вне зависимости от
названия файла.

Пока что это похоже на баг в plasma и где-то, возможно, есть хардкод
имени.
Comment 10 Roman Alifanov 2023-09-16 12:15:40 MSK
(Ответ для Alexey Gladkov на комментарий #9)
> (In reply to Олег Щавелев from comment #8)
> > Created attachment 14448 [details] [подробности] [details]
> > Вернул изображение ярлыка на экранах обзора и в доке сессии Wayland
> > 
> > При копировании и переименовании desktop-файла, после запуска приложения
> > ярлык отображается с иконкой в сессии Wayland
> > 
> > cp /usr/share/applications/firefox.desktop
> > ~/.local/share/applications/firefox-default.desktop 
> 
> Поясните, почему нужно такое переименование для отображения где-либо ?
Специфика wayland

Когда я запускаю в GNOME firefox, окно firefox характеризует себя как firefox-default, что есть во вложении от Олега Щавелева
https://bugzilla.altlinux.org/attachment.cgi?id=13961

> Если переименовать файл в /usr/share/applications, он тоже начнёт
> отображаться ?
Да. Вы можете проверить и сами.

В плазме он хоть как-то отображается, но в гноме - нет
Comment 11 Roman Alifanov 2023-09-16 12:21:01 MSK
Created attachment 14450 [details]
Fireox generic ico GNOME 44

(Ответ для Roman Alifanov на комментарий #10)
> Когда я запускаю в GNOME firefox, окно firefox характеризует себя как
> firefox-default, что есть во вложении от Олега Щавелева
Там не видно.
Кидаю вложение
Внимание на левый верхний угол. Именно так и было найдено нужное имя.
Comment 12 Alexey Gladkov 2023-09-16 15:27:44 MSK
Ок. Уже что-то.

Попробуйте запустить и проверить: firefox --name firefox
Comment 13 Alexey Gladkov 2023-09-16 15:28:14 MSK
ну или добавить эту опцию в firefox.desktop
Comment 14 Roman Alifanov 2023-09-16 15:55:10 MSK
(Ответ для Alexey Gladkov на комментарий #12)
> Ок. Уже что-то.
> 
> Попробуйте запустить и проверить: firefox --name firefox

Заработало как надо.
Остается выяснить, что лучше, переименование или этот ключ --name.
Думаю, лучше переименовать.
Comment 15 Alexey Gladkov 2023-09-16 16:08:13 MSK
(In reply to Roman Alifanov from comment #14)
> Заработало как надо.
> Остается выяснить, что лучше, переименование или этот ключ --name.
> Думаю, лучше переименовать.

Лучше использовать опцию. Я не хочу переименовывать desktop-файл каждый раз когда разработчикам вздумается поменять это название в коде. К тому же название firefox более правильное т.к. пакет и бинарник называется firefox.
Comment 16 Alexey Gladkov 2023-09-16 16:47:22 MSK
для истории: по умолчанию это имя складывается из

{MOZ_APP_NAME}-{MOZ_UPDATE_CHANNEL}

Поскольку у нас app.update.channel=default, то и имя получается firefox-default.

То есть насколько я понимаю без опции --name имя может поменяться в зависимости от конфигурации. А если указать app.update.channel=release, то имя станет firefox т.е. без суффикса вообще.
Comment 17 Repository Robot 2023-09-16 18:08:34 MSK
firefox-117.0.1-alt2 -> sisyphus:

 Sat Sep 16 2023 Alexey Gladkov <legion@altlinux.ru> 117.0.1-alt2
 - Enforce window name to associate icon and title with window in wayland (ALT#44871).
Comment 18 AEN 2023-09-16 18:22:00 MSK
Спасибо!
Comment 19 Tatyana Gagina 2023-12-25 12:45:31 MSK
Ошибка остаётся на p10 и Sisyphus, если комнат больше одной https://bugzilla.altlinux.org/show_bug.cgi?id=44871#c2 (шаги те же, как в комментарии №2).
Не зависит от того, в какой комнате выполнялось закрепление на панели задач (во вложении видео).

Воспроизводится в графических сессиях:
Plasma (X11)
Plasma (Wayland)

Стенды, обновленные до Sisypshus:
Education KDE x86-64
Workstation K x86-64

Также при запуске firefox обратить внимание на ошибку https://bugzilla.altlinux.org/44897

Версии на Sisyphus: firefox-121.0-alt1
thunderbird-115.4.1-alt1

Workaround: удалить вторую комнату (должна остаться только одна комната) и, не перезапуская сессию, снова запустить → закрепить → закрыть.
Результат: ошибки нет.

Проверялось на p10, ошибка воспроизводится.
Версии на p10: firefox-112.0.2-alt0.p10.1
thunderbird-102.11.0-alt1
Comment 20 Tatyana Gagina 2023-12-25 12:47:06 MSK
Created attachment 15271 [details]
видео
Comment 21 Sergey V Turchin 2023-12-25 14:08:42 MSK
(Ответ для Tatyana Gagina на комментарий #19)
> Также при запуске firefox обратить внимание на ошибку
> https://bugzilla.altlinux.org/44897
Comment 22 Repository Robot 2024-04-03 18:28:08 MSK
firefox-118.0.2-alt0.p10.1 -> p10:

 Fri Mar 15 2024 Andrey Cherepanov <cas@altlinux> 118.0.2-alt0.p10.1
 - Backported new version to p10 branch.
 Wed Oct 11 2023 Alexey Gladkov <legion@altlinux.ru> 118.0.2-alt1
 - New release (118.0.2).
 - Security fixes:
   + CVE-2023-5217: Heap buffer overflow in libvpx
 Tue Sep 26 2023 Alexey Gladkov <legion@altlinux.ru> 118.0-alt1
 - New release (118.0).
 - Security fixes:
   + CVE-2023-5168: Out-of-bounds write in FilterNodeD2D1
   + CVE-2023-5169: Out-of-bounds write in PathOps
   + CVE-2023-5170: Memory leak from a privileged process
   + CVE-2023-5171: Use-after-free in Ion Compiler
   + CVE-2023-5172: Memory Corruption in Ion Hints
   + CVE-2023-5173: Out-of-bounds write in HTTP Alternate Services
   + CVE-2023-5174: Double-free in process spawning on Windows
   + CVE-2023-5175: Use-after-free of ImageBitmap during process shutdown
   + CVE-2023-5176: Memory safety bugs fixed in Firefox 118, Firefox ESR 115.3, and Thunderbird 115.3
 Sat Sep 16 2023 Alexey Gladkov <legion@altlinux.ru> 117.0.1-alt2
 - Enforce window name to associate icon and title with window in wayland (ALT#44871).
 Wed Sep 13 2023 Alexey Gladkov <legion@altlinux.ru> 117.0.1-alt1
 - New release (117.0.1).
 - Security fixes:
   + CVE-2023-4863: Heap buffer overflow in libwebp
 Tue Aug 29 2023 Alexey Gladkov <legion@altlinux.ru> 117.0-alt1
 - New release (117.0).
 - Security fixes:
   + CVE-2023-4573: Memory corruption in IPC CanvasTranslator
   + CVE-2023-4574: Memory corruption in IPC ColorPickerShownCallback
   + CVE-2023-4575: Memory corruption in IPC FilePickerShownCallback
   + CVE-2023-4576: Integer Overflow in RecordedSourceSurfaceCreation
   + CVE-2023-4577: Memory corruption in JIT UpdateRegExpStatics
   + CVE-2023-4578: Error reporting methods in SpiderMonkey could have triggered an Out of Memory Exception
   + CVE-2023-4579: Persisted search terms were formatted as URLs
   + CVE-2023-4580: Push notifications saved to disk unencrypted
   + CVE-2023-4581: XLL file extensions were downloadable without warnings
   + CVE-2023-4582: Buffer Overflow in WebGL glGetProgramiv
   + CVE-2023-4583: Browsing Context potentially not cleared when closing Private Window
   + CVE-2023-4584: Memory safety bugs fixed in Firefox 117, Firefox ESR 102.15, Firefox ESR 115.2, Thunderbird 102.15, and Thunderbird 115.2
   + CVE-2023-4585: Memory safety bugs fixed in Firefox 117, Firefox ESR 115.2, and Thunderbird 115.2
 Thu Aug 17 2023 Alexey Gladkov <legion@altlinux.ru> 116.0.3-alt1
 - New release (116.0.3).
 Tue Aug 01 2023 Alexey Gladkov <legion@altlinux.ru> 116.0-alt1
 - New release (116.0).
 - Sync desktop-file with fedora.
 - Security fixes:
   + MFSA-RESERVE-2023-0001: Offscreen Canvas could have bypassed cross-origin restrictions
   + MFSA-RESERVE-2023-0002: Incorrect value used during WASM compilation
   + MFSA-RESERVE-2023-0003: Potential permissions request bypass via clickjacking
   + MFSA-RESERVE-2023-0004: Crash in DOMParser due to out-of-memory conditions
   + MFSA-RESERVE-2023-0005: Fix potential race conditions when releasing platform objects
   + MFSA-RESERVE-2023-0006: Stack buffer overflow in StorageManager
   + MFSA-RESERVE-2023-0007: Full screen notification obscured by file open dialog
   + MFSA-RESERVE-2023-0008: File deletion and privilege escalation through Firefox uninstaller
   + MFSA-RESERVE-2023-0009: Full screen notification obscured by external program
   + MFSA-RESERVE-2023-0010: Lack of warning when opening appref-ms files
   + MFSA-RESERVE-2023-0011: Cookie jar overflow caused unexpected cookie jar state
   + MFSA-RESERVE-2023-0012: Memory safety bugs fixed in Firefox 116, Firefox ESR 115.1, Firefox ESR 102.14, Thunderbird 115.1, and Thunderbird 102.14
   + MFSA-RESERVE-2023-0013: Memory safety bugs fixed in Firefox 116, Firefox ESR 115.1, and Thunderbird 115.1
   + MFSA-RESERVE-2023-0014: Memory safety bugs fixed in Firefox 116
 Mon Jul 31 2023 Alexey Gladkov <legion@altlinux.ru> 115.0.2-alt1
 - New release (115.0.2).
 - Security fixes:
   + CVE-2023-3600: Use-after-free in workers
 Tue Jul 04 2023 Alexey Gladkov <legion@altlinux.ru> 115.0-alt1
 - New release (115.0).
 - Security fixes:
   + CVE-2023-3482: Block all cookies bypass for localstorage
   + CVE-2023-37201: Use-after-free in WebRTC certificate generation
   + CVE-2023-37202: Potential use-after-free from compartment mismatch in SpiderMonkey
   + CVE-2023-37203: Drag and Drop API may provide access to local system files
   + CVE-2023-37204: Fullscreen notification obscured via option element
   + CVE-2023-37205: URL spoofing in address bar using RTL characters
   + CVE-2023-37206: Insufficient validation of symlinks in the FileSystem API
   + CVE-2023-37207: Fullscreen notification obscured
   + CVE-2023-37208: Lack of warning when opening Diagcab files
   + CVE-2023-37209: Use-after-free in `NotifyOnHistoryReload`
   + CVE-2023-37210: Full-screen mode exit prevention
   + CVE-2023-37211: Memory safety bugs fixed in Firefox 115, Firefox ESR 102.13, and Thunderbird 102.13
   + CVE-2023-37212: Memory safety bugs fixed in Firefox 115
 Thu Jun 15 2023 Alexey Gladkov <legion@altlinux.ru> 114.0.1-alt2
 - Disabled libproxy support due to regressions.
 Sun Jun 11 2023 Alexey Gladkov <legion@altlinux.ru> 114.0.1-alt1
 - New release (114.0.1).
 - Security fixes:
   + CVE-2023-34414: Click-jacking certificate exceptions through rendering lag
   + CVE-2023-34415: Site-isolation bypass on sites that allow open redirects to data: urls
   + CVE-2023-34416: Memory safety bugs fixed in Firefox 114 and Firefox ESR 102.12
   + CVE-2023-34417: Memory safety bugs fixed in Firefox 114
 Tue May 09 2023 Alexey Gladkov <legion@altlinux.ru> 113.0-alt1
 - New release (113.0).
 - Security fixes:
   + CVE-2023-32205: Browser prompts could have been obscured by popups
   + CVE-2023-32206: Crash in RLBox Expat driver
   + CVE-2023-32207: Potential permissions request bypass via clickjacking
   + CVE-2023-32208: Leak of script base URL in service workers via import()
   + CVE-2023-32209: Persistent DoS via favicon image
   + CVE-2023-32210: Incorrect principal object ordering
   + CVE-2023-32211: Content process crash due to invalid wasm code
   + CVE-2023-32212: Potential spoof due to obscured address bar
   + CVE-2023-32213: Potential memory corruption in FileReader::DoReadData()
   + MFSA-TMP-2023-0002: Race condition in dav1d decoding
   + CVE-2023-32214: Potential DoS via exposed protocol handlers
   + CVE-2023-32215: Memory safety bugs fixed in Firefox 113 and Firefox ESR 102.11
   + CVE-2023-32216: Memory safety bugs fixed in Firefox 113