-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed type associations and added "Default Application" (#635)
This is a relatively big code change: 1. Scheme protocols are added to the end of associations list. 2. A tab for default apps is added. For now, it supports the default browser and email client. 3. Default associations are done in a DE-specific way, so that they don't affect other DEs. 4. The current changes can be undone correctly and reliably. 5. The deprecated class `XdgDesktopFileCache` and the inefficient class `LXQt::SettingsCache` are removed from the code. `XdgMimeApps` is used instead of the former. The latter had bugs and couldn't do a correct and clean resetting; `QTemporaryFile` is used instead of it. 6. All memory leaks are fixed. They were found both by rereading the code and by using `valgrind`. NOTE 1: The patch relies on the latest git `libqtxdg` and SHOULD NOT be used without it. NOTE 2: `lxqt-config-file-associations` only supports setting of default apps. The support for removing/sorting associations is still missing. Association removal is supported by `libqtxdg` → `XdgMimeApps` and sorting can be added to it. Closes lxqt/lxqt#1513
- Loading branch information
Showing
6 changed files
with
879 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.