On Fri, 2017-07-21 at 21:06 +0800, Ed Greshko wrote:
> On 07/21/17 19:16, Patrick O'Callaghan wrote:
> > If we can narrow it down I'll be happy to
> > report it to BZ.
> 
> 
> OK.... Now I have it working fine starting from a "virgin" user.
> 
> [egreshko@f26-rc15k ~]$ default-browser-firefox
> [egreshko@f26-rc15k ~]$ show-default
> firefox.desktop
> firefox.desktop
> firefox.desktop
> [egreshko@f26-rc15k ~]$ default-browser-chrome
> [egreshko@f26-rc15k ~]$ show-default
> google-chrome.desktop
> google-chrome.desktop
> google-chrome.desktop
> [egreshko@f26-rc15k ~]$ default-browser-opera
> [egreshko@f26-rc15k ~]$ show-default
> opera.desktop
> opera.desktop
> opera.desktop
> 
> Can you check your user's directory structure to see if you have multiple
> mimeapps.list files?
> 
> [egreshko@f26-rc15k ~]$ locate mimeapps.list
> /home/egreshko/.config/mimeapps.list
> /usr/share/applications/gnome-mimeapps.list
> /usr/share/applications/kde-mimeapps.list
> /usr/share/applications/mimeapps.list

$ ls -l `locate mimeapps.list`          
-rw-rw-r--. 1 poc  poc    858 Jul 21 00:42 /home/poc/.config/mimeapps.list
-rw-------. 1 poc  poc    631 Feb 16  2016 
/home/poc/.kde/share/config/mimeapps.list
-rw-rw-r--. 1 poc  poc    784 May 14  2016 
/home/poc/.local/share/applications/mimeapps.list
-rw-rw-r--. 1 poc  poc      0 Oct  8  2015 /home/poc/.local/share/mimeapps.list
-rw-r--r--. 1 root root 13630 Jul 21 11:15 
/usr/share/applications/gnome-mimeapps.list
-rw-r--r--. 1 root root  8565 Apr 20 13:37 
/usr/share/applications/kde-mimeapps.list
-rw-r--r--. 1 root root 13634 Feb 12 00:47 /usr/share/applications/mimeapps.list
-rw-r--r--. 1 root root   906 May 10 09:35 
/usr/share/gdm/greeter/applications/mimeapps.list

> Whenever I issue a xdg-settings command /home/egreshko/.config/mimeapps.list 
> gets
> altered.  During my earlier testing I had a
> /home/egreshko/.local/share/applications/mimeapps.list file which I think may 
> have
> been screwing the checking being done.

There are a couple of things under ~/.local which possibly shouldn't be
there. I moved them aside and tried again, after running update-
desktop-database. No difference. Did the same but with the one under
.kde/share/... Same story.

I finally did a manual edit on ~/.config/mimeapps.list, ran the
updater, and now it works.

Interestingly, the gnome-control-center app now shows Opera as an
option, which it didn't before.

I suspect the other files are holdovers from previous versions, as I
always just update my system and have been doing so for years. None of
them have been recreated after logging out and in again, so I assume
they are surplus to requirements. Would it be too much to expect a
warning message when obsolete config files are found?

Thanks for your diligence Ed. Many kudos points. I'm not sure where to
report this or even if it will be recognised as a bug rather than just
spectacularly bad UI design.

poc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to