Filer
|
The LaunchDB class provides functionality to retrieve the default application associated with a file. More...
#include <LaunchDB.h>
Public Member Functions | |
QString | applicationForFile (const QFileInfo &fileInfo) const |
Retrieves the default application associated with the specified file. More... | |
The LaunchDB class provides functionality to retrieve the default application associated with a file.
The class represents the launch database that holds information about known applications, which MIME types they support, and which default application should be used for which MIME type. The launch database is implemented using directories and symlinks (e.g. ~/.local/share/launch/MIME/). It is populated and managed by the 'launch' and open
command line tools from https://github.com/helloSystem/launch/.
QString LaunchDB::applicationForFile | ( | const QFileInfo & | fileInfo | ) | const |
Retrieves the default application associated with the specified file.
fileInfo | The QFileInfo object representing the file. |