$ mimeopen -D gnome-control-center_1%3a41.4-1ubuntu13_amd64.deb 
> Data dirs are: /home/jeremy/.local/share, /usr/share/ubuntu, 
> /usr/local/share, /usr/share, /var/lib/snapd/desktop
> Checking inode type
> Checking globs for basename 
> 'gnome-control-center_1%3a41.4-1ubuntu13_amd64.deb'
> Checking for extension '.deb'
Opening "gnome-control-center_1%3a41.4-1ubuntu13_amd64.deb" with Archive 
Manager  (application/vnd.debian.binary-package)


Beginning of the Fix
====================
1. Add application/vnd.debian.binary-package;
to the MimeType line of
snap-store_ubuntu-software-local-file.desktop

2. Then run
sudo update-desktop-database /var/lib/snapd/desktop/applications


$ mimeopen -D gnome-control-center_1%3a41.4-1ubuntu13_amd64.deb 
> Data dirs are: /home/jeremy/.local/share, /usr/share/ubuntu, 
> /usr/local/share, /usr/share, /var/lib/snapd/desktop
> Checking inode type
> Checking globs for basename 
> 'gnome-control-center_1%3a41.4-1ubuntu13_amd64.deb'
> Checking for extension '.deb'
Please choose a default application for files of type 

        1) Archive Manager  (org.gnome.FileRoller)
        2) Software Install  (snap-store_ubuntu-software-local-file)
        3) Other...

use application #

That got me a step closer but then it looks like at least mimeopen isn't
sure which app to use.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to desktop-file-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1970248

Title:
  .deb files open with Archive Manager by default

Status in snap-store-desktop:
  Triaged
Status in desktop-file-utils package in Ubuntu:
  Triaged
Status in desktop-file-utils source package in Jammy:
  Triaged

Bug description:
  Impact
  ------
  Someone who downloads a .deb file usually wants to install the .deb when they 
open it. Opening it with Archive Manager is really confusing.

  Test Case
  ---------
  Download a .deb
  Open your Downloads folder with the file manager.
  Double click on the .deb
  The Ubuntu Software app should open with a button that says Install.

  More Details
  ------------
  desktop-file-utils provides /etc/gnome/defaults.list
  In that file, there is this line (and several other lines also referring to 
the same .desktop)

  application/vnd.debian.binary-package=snap-store_ubuntu-software-
  local-file.desktop

  But when I look at /snap/snap-store/575/usr/share/applications/
  there is gnome-software-local-file.desktop

  which is a different file name.

  I believe this issue can be fixed in either snap-store or with
  desktop-file-utils.

To manage notifications about this bug go to:
https://bugs.launchpad.net/snap-store-desktop/+bug/1970248/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to