Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 5604  / 2 Years ago, sat, august 27, 2022, 8:36:04

Previously when I clicked on an action in a program that opens an HTML file it would open in the browser automatically. However, now instead of opening in the browser, it opens a nautilus window with the HTML file highlighted.



A good example of this problem is when I try to go to the dropbox website. If you use dropbox when you click "Launch Dropbox Website" it takes you to their website directly.



On my computer however, it opens a nautilus window of /tmp and THEN I have to click on open in chrome/firefox. To get it to open up properly.



Thoughts?



Update: Updating with results of grep "html" /usr/share/applications/*



$ grep "html" /usr/share/applications/*
/usr/share/applications/AptanaStudio3.desktop:MimeType=text/xml;application/xhtml+xml;application/x-javascript;application/x-php;application/x-java;text/x-javascript;text/html;text/plain
/usr/share/applications/defaults.list:application/xhtml+xml=firefox.desktop
/usr/share/applications/defaults.list:text/html=firefox.desktop
/usr/share/applications/firefox.desktop:MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
/usr/share/applications/geany.desktop:MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-dsrc;text/x-pascal;text/x-perl;text/x-python;application/x-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/xml;text/html;text/css;text/x-sql;text/x-diff;
/usr/share/applications/gnome-terminal.desktop:X-GNOME-DocPath=gnome-terminal/index.html
grep: /usr/share/applications/kde4: Is a directory
/usr/share/applications/kompozer.desktop:MimeType=text/html;text/xml;text/css;text/x-javascript;text/javascript;application/xhtml+xml;
/usr/share/applications/mimeinfo.cache:application/xhtml+xml=firefox.desktop;AptanaStudio3.desktop;kompozer.desktop;
/usr/share/applications/mimeinfo.cache:text/html=geany.desktop;firefox.desktop;AptanaStudio3.desktop;sublime-text-2.desktop;kompozer.desktop;rstudio.desktop;
/usr/share/applications/mimeinfo.cache:text/x-r-html=rstudio.desktop;
/usr/share/applications/rstudio.desktop:MimeType=text/x-r-source;text/x-r;text/x-R;text/x-r-doc;text/x-r-sweave;text/x-r-markdown;text/x-r-html;application/x-r-data;application/x-r-project;text/x-r-history;text/x-r-profile;text/x-tex;text/x-markdown;text/html;text/css;text/javascript;
grep: /usr/share/applications/screensavers: Is a directory
/usr/share/applications/sublime-text-2.desktop:Comment=Sophisticated text editor for code, html and prose
/usr/share/applications/sublime-text-2.desktop:MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-dsrc;text/x-pascal;text/x-perl;text/x-python;application/x-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/xml;text/html;text/css;text/x-sql;text/x-diff;x-directory/normal;inode/directory;

More From » nautilus

 Answers
1

It's possible that the hidden file ~/.local/share/applications/mimeapps.list has been corrupted or inadvertently altered. Make a backup of this file just to be safe and then delete the original. Then log out and log back in. The system should recreate this file. For some specialised instances, you may have to "re-train" the system by right-clicking on a file type and choosing "Open with" and then an application to "Always Open with" by checking that option.


[#32242] Monday, August 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cupwire

Total Points: 365
Total Questions: 126
Total Answers: 125

Location: Malaysia
Member since Thu, Feb 16, 2023
1 Year ago
cupwire questions
;