mirror of
https://git.srhtnin.garden/sarah/SaraSuite.git
synced 2026-10-14 18:28:11 +02:00
Initial commit
This commit is contained in:
commit
bea0f43947
25 files changed
+2327
No files matched your search
@@ -0,0 +1,67 @@
|
||||
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"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
# Written by SaraSuite. Runs from the app folder so Flet finds assets/.
|
||||
cd "{AppDir}" || exit 1
|
||||
exec "{Python}" Main.py "$@"
|
||||
@@ -0,0 +1,3 @@
|
||||
[D-BUS Service]
|
||||
Name=org.freedesktop.impl.portal.desktop.SaraFem
|
||||
Exec={AppDir}/Packaging/Launch.sh --portal-service
|
||||
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=SaraFem
|
||||
Comment=A file manager for the SaraSuite
|
||||
Exec={AppDir}/Packaging/Launch.sh %f
|
||||
Icon={AppDir}/assets/Icon.png
|
||||
Terminal=false
|
||||
Categories=System;FileManager;
|
||||
MimeType=inode/directory;
|
||||
StartupNotify=true
|
||||
@@ -0,0 +1,4 @@
|
||||
[portal]
|
||||
DBusName=org.freedesktop.impl.portal.desktop.SaraFem
|
||||
Interfaces=org.freedesktop.impl.portal.FileChooser;
|
||||
UseIn={DesktopName}
|
||||
Reference in new issue
Block a user