Initial commit after restructure
This commit is contained in:
39
process/xdgicons/locations.go
Normal file
39
process/xdgicons/locations.go
Normal file
@@ -0,0 +1,39 @@
|
||||
// Copyright Safing ICS Technologies GmbH. Use of this source code is governed by the AGPL license that can be found in the LICENSE file.
|
||||
|
||||
package process
|
||||
|
||||
// spec: https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
|
||||
// alternatives:
|
||||
// gtk3 lib: https://developer.gnome.org/gtk3/stable/GtkIconTheme.html
|
||||
// qt lib: ?
|
||||
|
||||
var (
|
||||
starterLocations = []string{
|
||||
"/usr/share/applications",
|
||||
"/var/lib/flatpak/exports/share/applications/",
|
||||
}
|
||||
|
||||
iconLocations = []string{
|
||||
"/usr/share/pixmaps",
|
||||
}
|
||||
|
||||
xdgIconLocations = []string{
|
||||
"/usr/share/default",
|
||||
"/usr/share/gnome",
|
||||
"/var/lib/flatpak/exports/share",
|
||||
"/usr/local/share",
|
||||
"/usr/share",
|
||||
"/var/lib/snapd/desktop",
|
||||
}
|
||||
|
||||
xdgIconPaths = []string{
|
||||
"icons/hicolor/512x512/apps",
|
||||
"icons/hicolor/256x256/apps",
|
||||
"icons/hicolor/192x192/apps",
|
||||
"icons/hicolor/128x128/apps",
|
||||
"icons/hicolor/96x96/apps",
|
||||
"icons/hicolor/72x72/apps",
|
||||
"icons/hicolor/64x64/apps",
|
||||
"icons/hicolor/48x48/apps",
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user