In Windows, the operating system keeps a table of file extension associations between the file extension ("pdf") and the application used to open that type ("acrobat.exe"). All QDesktopServices is doing is looking up that association and firing off the application (if the association exists) with the URL as a command line argument to the program.
I am certain there is something similar in linux. You need to set up the association between "chm" extensions and the "chmSee" app. Maybe you can do this from within the app itself or maybe there is something in a file browser app that lets you do it (like Windows Explorer's "Open with" context menu option.
I found "/usr/share/applications/defaults.list" which maps the extensions to applications in SuseLinux. It already contains the mapping for chm files. So what next?
Last edited by Anaswara; 20th September 2017 at 07:24.
Bookmarks