On Tue, 01 Feb 2022 14:57:30 +1100 "Trent W. Buck" <trentb...@gmail.com> wrote:
> Package: chromium
> Version: 97.0.4692.99-1~deb11u2
> Severity: minor
> Tags: patch
>
> Chromium ships an icon called "chromium",
>
>     /usr/share/pixmaps/chromium.png
>
> But Chromium creates an XDG menu set to Icon=chromium-browser:
>
> root@tweak:~# cat /home/prisoners/p123/.local/share/desktop-directories/chrome-apps.directory
>     [Desktop Entry]
>     Version=1.0
>     Type=Directory
>     Name=Chromium Apps
>     Icon=chromium-browser
>
> To reproduce this the interactive recipe is:
>
>   * open chromium
>   * browse to https://example.edu/
>   * click ⋮  > More Tools > Create shortcut > Create
>   * open Applications menu in xfce4-panel (or other XDG menu client)
>
> To reproduce this the automatic recipe is:
>
>   cat <<-'EOF' >/etc/chromium/policies/managed/01-Startup.json
> {"WebAppInstallForceList": [{"url": "https://example.edu/";, "create_desktop_shortcut": true}]}
>   EOF
>   chromium &
>   sleep 60   # wait for chromium to start enforcing its group policy
>   kill %1
>   xfce4-popup-applicationsmenu  # open XFCE start menu
>
> I'm not sure where in C++ this .directory is created.
> This inconsistency also happens in e.g. WM_CLASS (seen in xprop).
> Rather than trying to fix upstream to be consistent,
> I think the easy answer is to just to make a symlink in here:
>
> https://sources.debian.org/src/chromium/97.0.4692.71-0.1~deb11u1/debian/chromium.links/
>
> A patch to this effect is attached.
>
>
> -- System Information:
> Debian Release: 11.2
>   APT prefers stable-updates
> APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'stable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 5.14.0-0.bpo.2-amd64 (SMP w/8 CPU threads)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE > Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages chromium-common depends on:
> ii  libc6       2.31-13+deb11u2


Does this still happen? I couldn't reproduce it on cinnamon in debian stable with the latest version of chromium; at least, it shows the correct icon.



Reply via email to