1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 11:38:30 -04:00

default apps: add configuration for geo: URIs

port: 1.5
(cherry picked from commit d0a4c1c56e)
This commit is contained in:
bbedward
2026-07-09 12:23:13 -04:00
committed by dms-ci[bot]
parent 6d08b91004
commit e84e63fa3a
2 changed files with 20 additions and 4 deletions
+11 -1
View File
@@ -19,7 +19,8 @@ Item {
PDFReader: 6,
Mail: 7,
Terminal: 8,
Calendar: 9
Calendar: 9,
Maps: 10
})
property string currentWebBrowserAppId: ""
@@ -32,6 +33,7 @@ Item {
property string currentMailAppId: ""
property string currentTerminalAppId: ""
property string currentCalendarAppId: ""
property string currentMapsAppId: ""
property var categoryModels: ({})
@@ -48,6 +50,7 @@ Item {
[root.appCategory.PDFReader]: ["application/pdf", "application/x-ext-pdf", "application/x-bzpdf", "application/x-gzpdf", "application/vnd.comicbook-rar", "application/vnd.comicbook+zip"],
[root.appCategory.Mail]: ["x-scheme-handler/mailto"],
[root.appCategory.Calendar]: ["x-scheme-handler/calendar"],
[root.appCategory.Maps]: ["x-scheme-handler/geo"],
[root.appCategory.Terminal]: ["terminal"] // Special
})
@@ -280,6 +283,13 @@ Item {
tags: ["mail", "email"]
description: I18n.tr("Handles mailto links", "Handles mailto links")
}
AppSelector {
text: I18n.tr("Maps", "Maps")
category: root.appCategory.Maps
tags: ["maps", "geo", "location"]
description: I18n.tr("Handles geo: location links", "Handles geo: location links")
}
}
SettingsCard {