weird default applications behaviour

Bug #1993244 reported by murmel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Expired
Low
Unassigned

Bug Description

When installing multiple packages at the same time, which manipulate the default applications settings in the gnome control center, not all are being added and/or others are getting removed/forgotten. (a lot of times, I have the issue that the mime text/calendar is getting forgotten by gnome)

so the workaround right now is to install packages one after the other to get the option to select the correct application.

if there is a way to supply logs, I would be happy to provide them.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-control-center 1:41.7-0ubuntu0.22.04.5
ProcVersionSignature: Ubuntu 5.15.0-50.56-generic 5.15.60
Uname: Linux 5.15.0-50-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 18 06:30:33 2022
InstallationDate: Installed on 2022-10-17 (0 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
SourcePackage: gnome-control-center
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
murmel (murmel0) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately, we cannot work on this bug because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem.

We have instructions on debugging some types of problems at http://wiki.ubuntu.com/DebuggingProcedures.

At a minimum, we need:

1. The specific steps or actions you took that caused you to encounter the problem.
2. The behavior you expected.
3. The behavior you actually encountered (in as much detail as possible).

Please also ensure that you include the release and flavour of Ubuntu that you are using.

Thank you!

Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

could you give an example of calendar software which isn't listed by GNOME? The UI should just pick any installed .desktop, how they are installed and in which order shouldn't lead to different results

Revision history for this message
murmel (murmel0) wrote :

I have a script which installs all the packages I need, which includes gnome-calendar and evolution. It always shows both when installing seperately. When installing both at the same time, it can (weirdly enough, this doesn't always happen) remove one or the other, including the mime type (which makes the events in the notification center unclickable). This also happens with Music and Video (for Music I have Rhythmbox, but it clashes with mpv)(for Video it's Celluloid, mpv and Totem)

Revision history for this message
Sebastien Bacher (seb128) wrote :

so the calendar selector in setting doesn't list evolution or gnome-calendar in those cases? Are they listed if you right click on an ics file from nautilus?

could you include your /usr/share/applications/mimeinfo.cache in that case and the log from the packages installation?

does doing
$ sudo update-desktop-database
resolve the issue?

Revision history for this message
murmel (murmel0) wrote :

sadly enough, I can't reproduce this in a VM, but for some reason I had this bug in 6 out of 8 installs (on actual hardware).

So I guess I need to wait till I will have to reinstall or it was patched by accident

information type: Public → Public Security
information type: Public Security → Public
Revision history for this message
murmel (murmel0) wrote :

interestingly enough, just upgraded to kinetic, where some of the applications got removed from the list (chromium from browsers (only firefox is there), and in video only celluloid is shown.

sudo update-desktop-database does not help.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the cache has 'text/calendar=org.gnome.Calendar.desktop;org.gnome.Evolution.desktop;', what is settings listing as calendar options for you?

Revision history for this message
murmel (murmel0) wrote :

only Evolution right now

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you get any warning on the stdout/err? it's a bit of a weird issue...

Changed in gnome-control-center (Ubuntu):
status: Incomplete → New
Revision history for this message
murmel (murmel0) wrote :

no, otherwise I would have added it.

Revision history for this message
Sebastien Bacher (seb128) wrote :

And what's the output of

$ gio mime text/calendar

?

Changed in gnome-control-center (Ubuntu):
status: New → Incomplete
Revision history for this message
murmel (murmel0) wrote :

$ gio mime text/calendar
Default application for “text/calendar”: org.gnome.Calendar.desktop
Registered applications:
        org.gnome.Calendar.desktop
Recommended applications:
        org.gnome.Calendar.desktop

Revision history for this message
Sebastien Bacher (seb128) wrote :

interesting since your cache has
text/calendar=org.gnome.Calendar.desktop;org.gnome.Evolution.desktop;

it also shows the issue is at the glib level and not in the settings

could you share the output of that one?

$ for f in `strace -e openat gio mime text/calendar 2>&1 | grep mimeinfo.cache | grep -v ENOENT | sed 's/.*"\(.*\)".*/\1/'`; do echo $f; grep text/calendar $f; echo -e ''; done

Revision history for this message
murmel (murmel0) wrote :

$ for f in `strace -e openat gio mime text/calendar 2>&1 | grep mimeinfo.cache | grep -v ENOENT | sed 's/.*"\(.*\)".*/\1/'`; do echo $f; grep text/calendar $f; echo -e ''; done
/usr/share/ubuntu/applications/mimeinfo.cache

/usr/share/applications/mimeinfo.cache
text/calendar=org.gnome.Calendar.desktop;

/var/lib/snapd/desktop/applications/mimeinfo.cache

Revision history for this message
Sebastien Bacher (seb128) wrote :

hum, but

/usr/share/applications/mimeinfo.cache
text/calendar=org.gnome.Calendar.desktop;

doesn't match the content of the /usr/share/applications/mimeinfo.cache file you attached earlier in the bug... did you attach the wrong file or do config changes in between?

Revision history for this message
murmel (murmel0) wrote (last edit ):

verified again, it's the same file. no changes in between

//edit: also looking around why chromium doesn't show up as an option. but seems like chromium isn't defined anywhere as an option. (using the snap, same as firefox)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnome-control-center (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-control-center (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.