After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 653000 - [info] Default Applications Do Not Persist
[info] Default Applications Do Not Persist
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Other Preferences
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-20 12:51 UTC by Josh
Modified: 2012-12-18 16:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Defaulted (incorrect) values for 'Default Applications' in GUI (32.92 KB, image/png)
2011-06-20 12:51 UTC, Josh
Details
Correct 'Default Applications' configuration in GUI (33.67 KB, image/png)
2011-06-20 12:52 UTC, Josh
Details

Description Josh 2011-06-20 12:51:50 UTC
Created attachment 190265 [details]
Defaulted (incorrect) values for 'Default Applications' in GUI

The default applications on my clean install of Feodra 15 with Gnome 3.0.1 do not persist for an extended period of time. If I reboot or leave my laptop on all evening the default browser and e-mail client will magically reset itself back to 'Firefox' and 'Evolution' instead of 'Google Chrome' and 'Gnome-Mail'.

I have tried checking all the typical files and settings but the only command that seems to detect the reverting is:
[]$ xdg-mime query default text/html
which: no gnome-default-applications-properties in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/josh/bin)
mozilla-firefox.desktop

If I want Gnome to not revert the browser until I reboot I need to run:
[]$ xdg-mime default google-chrome.desktop text/html

At this point I'm out of ideas for how to further troubleshoot this issue and I can only assume it's a bug since I'm now running on my 2nd clean install.
Comment 1 Josh 2011-06-20 12:52:47 UTC
Created attachment 190266 [details]
Correct 'Default Applications' configuration in GUI
Comment 2 Bastien Nocera 2011-06-20 13:04:20 UTC
xdg-mime is very likely broken, and it's what Chrome/Chromium uses to set itself as default. Which version of it do you have?

What errors do you see (if any) when running "gnome-control-center info" and making the changes again, from a terminal?
Comment 4 Josh 2011-06-20 13:22:03 UTC
Thanks! I'm running Google Chrome: 14.0.794.0 dev.

I get no errors when I run 'gnome-control-center info' and under "Default Applications" everything looks fine since I changed them back manually this morning. They will only be reverted after a reboot. It should be noted that the "Default Application" for Mail "Gnome-Gmail" also gets reverts back to "Evolution" so I'm not sure if it's Chrome specific.

A few days ago when testing, I found that when I ran the settings commands manually they would not set the browser as expected until I used gnome-control-center
[]$ xdg-settings set default-web-browser google-chrome.desktop
which: no gnome-default-applications-properties in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/josh/bin)
xdg-mime: malformed argument 'which: no gnome-default-applications-properties in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/josh/bin)
which: no gnome-default-applications-properties in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/josh/bin)', expected *.desktop
Try 'xdg-mime --help' for more information.

[]$ xdg-settings get default-web-browser
which: no gnome-default-applications-properties in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/josh/bin)
which: no gnome-default-applications-properties in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/josh/bin)
mozilla-firefox.desktop

[]$ xdg-settings --list
Known properties:
  default-web-browser           Default web browser

[]# find / -name google-chrome.desktop
/opt/google/chrome/google-chrome.desktop
/usr/local/share/applications/google-chrome.desktop

[]$ rpm -qa | grep xdg-utils
xdg-utils-1.1.0-0.6.20110505.fc15.noarch
Comment 5 Bastien Nocera 2011-06-20 14:00:17 UTC
xdg-utils is still broken it seems.
Comment 6 Josh 2011-06-20 15:38:56 UTC
Please let me know if I can do any additional testing to help resolve the issue.
Comment 7 Josh 2011-06-23 15:07:10 UTC
Quick update. For what it's worth and how it's related I'm not 100% sure yet but I decided to remove/uninstall Firefox and Evolution and since then neither my default mail or default browser programs have reverted back. Granted now Chrome is my only registered browser so that's hard to tell but Gnome-GMail is among another option and it has not reverted to Evolution as it was previously doing.

Again, if there are other troubleshooting steps I can take to help solve the puzzle just let me know.
Comment 8 Bastien Nocera 2012-12-18 16:46:15 UTC
If you want to debug this further, feel free to reopen this bug. We'd need the output from:
gvfs-mime --query x-scheme-handler/http
for example.

I'll close this as the original problem was solved.