Opened 7 years ago
Closed 7 years ago
#1188 closed defect (nonchimerax)
ChimeraX should ask before registering itself as default application for opening files
| Reported by: | Tristan Croll | Owned by: | Greg Couch |
|---|---|---|---|
| Priority: | moderate | Milestone: | |
| Component: | Platform | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
It's something of an annoyance that ChimeraX automatically registers itself as *the* default viewer for a remarkably wide range of file types. On my Linux machine:
cat ~/.local/share/applications/defaults.list [Default Applications] application/octet-stream=UCSF-ChimeraX-0.1.desktop application/x-chimerax-code=UCSF-ChimeraX-unknown.desktop;UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop application/x-chimerax-session=UCSF-ChimeraX-unknown.desktop;UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop application/x-python-code=UCSF-ChimeraX-unknown.desktop;UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop application/xhtml+xml=UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop chemical/x-mmcif=UCSF-ChimeraX-unknown.desktop;UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop chemical/x-pdb=UCSF-ChimeraX-unknown.desktop;UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop chemical/x-spdbv=UCSF-ChimeraX-unknown.desktop;UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop model/x3d+xml=UCSF-ChimeraX-unknown.desktop;UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop text/html=UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop text/x-chimerax=UCSF-ChimeraX-unknown.desktop;UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop text/x-python=UCSF-ChimeraX-unknown.desktop;UCSF-ChimeraX-0.1.desktop;UCSF-ChimeraX-0.5.desktop;UCSF-ChimeraX-0.6.desktop;UCSF-ChimeraX-0.7.desktop
Registering itself as the default viewer for application-specific files (PDB, mmCIF etc.) is one thing, but in Linux it also becomes *the* default for opening HTML and Python files. That will undoubtedly lead to complaints, and it also leads to weirdness: using Python's webbrowser library to open an HTML file (ISOLDE's help) from within ChimeraX launches a brand new ChimeraX instance which then dutifully opens it in the PyQt HTML browser.
ChimeraX never installs itself as the default viewer -- it uses 'xdg-mime install' not 'xdg-mime default'.