[snap] Wrapper script might create duplicate launcher entries for chromium_chromium.desktop

Bug #1832579 reported by Olivier Tilloy
This bug affects 2 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Olivier Tilloy

Bug Description

When installing the updated deb package that transitions to the snap, if the snap was already installed and its desktop file already pinned to the GNOME Shell / Unity launcher, and if chromium-browser.desktop (from the deb) was also pinned, the /usr/bin/chromium-browser wrapper script will rewrite chromium-browser.desktop to chromium_chromium.desktop, but it doesn't check whether there is already an entry for it in the favorites, so it might result in duplicated entries.

This is not visible to the user because both GNOME Shell and Unity launchers appear to have some logic to filter out duplicate entries. Still, it would be nice to not add duplicate entries.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: chromium-browser 75.0.3770.80-0ubuntu1~snap1 [modified: usr/share/apport/package-hooks/chromium-browser.py]
ProcVersionSignature: Ubuntu 5.0.0-16.17-generic 5.0.8
Uname: Linux 5.0.0-16-generic x86_64
ApportVersion: 2.20.11-0ubuntu3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
 enabled: enabled
 dpms: On
 status: connected
 modes: 1128x660 2560x1600 2560x1600 1920x1440 1856x1392 1792x1344 2048x1152 1920x1200 1920x1200 1920x1080 1600x1200 1680x1050 1680x1050 1400x1050 1400x1050 1600x900 1280x1024 1440x900 1440x900 1280x960 1366x768 1366x768 1360x768 1280x800 1280x800 1280x768 1280x768 1280x720 1024x768 800x600 800x600 848x480 640x480
Date: Wed Jun 12 15:58:05 2019
 Filesystem Type Size Used Avail Use% Mounted on
 /dev/sda1 ext4 30G 7,7G 21G 28% /
 tmpfs tmpfs 2,0G 0 2,0G 0% /dev/shm
 /dev/sda1 ext4 30G 7,7G 21G 28% /
InstallationDate: Installed on 2018-08-21 (294 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Alpha amd64 (20180821)
 Bus 001 Device 004: ID 80ee:0021 VirtualBox USB Tablet
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: innotek GmbH VirtualBox
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-16-generic root=UUID=b6433793-b0b1-4fae-8bb3-585f57860605 ro quiet splash
Snap.ChromeDriverVersion: ChromeDriver 75.0.3770.80 (9a9aa15057b6b2cc0909bdcf638c0b65ecd516f2-refs/branch-heads/3770@{#948})
Snap.ChromiumVersion: Chromium 75.0.3770.80 snap
SourcePackage: chromium-browser
UpgradeStatus: Upgraded to eoan on 2019-06-05 (6 days ago)
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:rvnOracleCorporation:rnVirtualBox:rvr1.2:cvnOracleCorporation:ct1:cvr:
dmi.product.family: Virtual Machine
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH

Revision history for this message
Olivier Tilloy (osomon) wrote :
Lenin (gagarin)
summary: - Wrapper script might create duplicate launcher entries for
+ [snap] Wrapper script might create duplicate launcher entries for
Revision history for this message
Darko Veberic (darko-veberic-ung) wrote :

multiple copies though are visible in the default browser selector of preferred applications in xfce settings...

Revision history for this message
Olivier Tilloy (osomon) wrote :

Darko, that's a different issue, which I think has the same root cause as bug #1847048, feel free to comment there to explain the problem.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers