Remove default file association
-
Hello all,
I want to remove the default app associated with a particular file type not change it to another app, just remove the association completely. I haven't found a clear answer online. Does anyone know how to do it?Thanks!
-
You can't do this with Qt as it's to OS-specific.
-
Hello all,
I want to remove the default app associated with a particular file type not change it to another app, just remove the association completely. I haven't found a clear answer online. Does anyone know how to do it?Thanks!
@JohnPSoluri As @Christian-Ehrlicher says, write some C++ code for each platform/windowing system you want to support.
-
@JohnPSoluri As @Christian-Ehrlicher says, write some C++ code for each platform/windowing system you want to support.
@JonB said in Remove default file association: block blast
@JohnPSoluri As @Christian-Ehrlicher says, write some C++ code for each platform/windowing system you want to support.
Thanks for your good comments
-
Hi,
Out of curiosity, is it something that you want your users to be able to do with your apps ?
If not, they might not appreciate their system being altered without their knowledge. -
You can't do this with Qt as it's to OS-specific.
@Christian-Ehrlicher said in Remove default file association:
You can't do this with Qt as it's to OS-specific.
You are certainly right about the first part. However, I would claim that this is something (at least up to a certain point) that could actually fall into the realm of Qt. All operating systems have some sort of file type association. Windows and macOS should be pretty straight forward. I am not entirely sure about Linux if this is related to the window manager. There is certainly a certain standard with xdgutils. But, I believe this is mostly for the command line and not used by every window manager. A lot of people would already be covered by supporting Gnome and KDE (maybe another 1 or 2 window managers).
What I'm saying is that it is not too crazy to expect this to be part of Qt. QSettings properly stores configuration according to common platform rules (even uses the registry on Windows).