Filer
Public Member Functions | List of all members
LaunchDB Class Reference

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...
 

Detailed Description

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/.

Member Function Documentation

◆ applicationForFile()

QString LaunchDB::applicationForFile ( const QFileInfo &  fileInfo) const

Retrieves the default application associated with the specified file.

Parameters
fileInfoThe QFileInfo object representing the file.
Returns
The path to the default application for the file, or an empty QString if not found.

The documentation for this class was generated from the following files: