mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
filebrowser: use xdg paths (#555)
This commit is contained in:
committed by
GitHub
parent
c6efccd61c
commit
cac071e7af
@@ -12,6 +12,12 @@ DankModal {
|
|||||||
id: fileBrowserModal
|
id: fileBrowserModal
|
||||||
|
|
||||||
property string homeDir: StandardPaths.writableLocation(StandardPaths.HomeLocation)
|
property string homeDir: StandardPaths.writableLocation(StandardPaths.HomeLocation)
|
||||||
|
property string docsDir: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
|
||||||
|
property string musicDir: StandardPaths.writableLocation(StandardPaths.MusicLocation)
|
||||||
|
property string videosDir: StandardPaths.writableLocation(StandardPaths.MoviesLocation)
|
||||||
|
property string picsDir: StandardPaths.writableLocation(StandardPaths.PicturesLocation)
|
||||||
|
property string downloadDir: StandardPaths.writableLocation(StandardPaths.DownloadLocation)
|
||||||
|
property string desktopDir: StandardPaths.writableLocation(StandardPaths.DesktopLocation)
|
||||||
property string currentPath: ""
|
property string currentPath: ""
|
||||||
property var fileExtensions: ["*.*"]
|
property var fileExtensions: ["*.*"]
|
||||||
property alias filterExtensions: fileBrowserModal.fileExtensions
|
property alias filterExtensions: fileBrowserModal.fileExtensions
|
||||||
@@ -312,27 +318,27 @@ DankModal {
|
|||||||
"icon": "home"
|
"icon": "home"
|
||||||
}, {
|
}, {
|
||||||
"name": "Documents",
|
"name": "Documents",
|
||||||
"path": homeDir + "/Documents",
|
"path": docsDir,
|
||||||
"icon": "description"
|
"icon": "description"
|
||||||
}, {
|
}, {
|
||||||
"name": "Downloads",
|
"name": "Downloads",
|
||||||
"path": homeDir + "/Downloads",
|
"path": downloadDir,
|
||||||
"icon": "download"
|
"icon": "download"
|
||||||
}, {
|
}, {
|
||||||
"name": "Pictures",
|
"name": "Pictures",
|
||||||
"path": homeDir + "/Pictures",
|
"path": picsDir,
|
||||||
"icon": "image"
|
"icon": "image"
|
||||||
}, {
|
}, {
|
||||||
"name": "Music",
|
"name": "Music",
|
||||||
"path": homeDir + "/Music",
|
"path": musicDir,
|
||||||
"icon": "music_note"
|
"icon": "music_note"
|
||||||
}, {
|
}, {
|
||||||
"name": "Videos",
|
"name": "Videos",
|
||||||
"path": homeDir + "/Videos",
|
"path": videosDir,
|
||||||
"icon": "movie"
|
"icon": "movie"
|
||||||
}, {
|
}, {
|
||||||
"name": "Desktop",
|
"name": "Desktop",
|
||||||
"path": homeDir + "/Desktop",
|
"path": desktopDir,
|
||||||
"icon": "computer"
|
"icon": "computer"
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user