Files
SaraSuite/Programs/SaraFem/Manifest.toml
T
2026-09-24 22:04:04 +02:00

68 lines
1.7 KiB
TOML

Name = "SaraFem"
Description = "Desktop file manager that understands SaraTag Books, and can stand in as the system file picker."
# The portal reads its descriptors and preferences once at startup.
RestartUnits = ["xdg-desktop-portal.service"]
[Source]
Git = "{GitHost}/SaraFem"
Include = ["*.py", "requirements.txt", "assets/**"]
Exclude = ["Packaging"]
[Python]
RequirementsFile = "requirements.txt"
[[Options]]
Id = "FilePicker"
Label = "Use SaraFem as the system file picker (asks for your password: the portal file lives in /usr/share)"
Default = true
[[Options]]
Id = "DefaultFileManager"
Label = "Make SaraFem the default file manager"
Default = false
[[Templates]]
Source = "Launch.sh"
Target = "{AppDir}/Packaging/Launch.sh" # where PortalService.py looks for it
Executable = true
[[Templates]]
Source = "SaraFem.desktop"
Target = "{ApplicationsDir}/SaraFem.desktop"
[[Templates]]
Source = "PortalService.service"
Target = "{DBusServicesDir}/org.freedesktop.impl.portal.desktop.SaraFem.service"
Option = "FilePicker"
[[Templates]]
Source = "SaraFem.portal"
Target = "/usr/share/xdg-desktop-portal/portals/SaraFem.portal"
Option = "FilePicker"
Root = true
[[IniEdits]]
File = "{ConfigHome}/xdg-desktop-portal/{Desktop}-portals.conf"
Section = "preferred"
Key = "org.freedesktop.impl.portal.FileChooser"
Value = "SaraFem;{Desktop};gtk;"
Option = "FilePicker"
[[IniEdits]]
File = "{ConfigHome}/mimeapps.list"
Section = "Default Applications"
Key = "inode/directory"
Value = "SaraFem.desktop"
Option = "DefaultFileManager"
[[Leftovers]]
Path = "{CacheHome}/SaraFem"
Kind = "Runtime"
Note = "thumbnail cache"
[[Leftovers]]
Path = "{ConfigHome}/SaraFem"
Kind = "Config"
Note = "old pre-SaraSuite config location"