mirror of
https://git.srhtnin.garden/sarah/SaraSuite.git
synced 2026-10-14 10:28:11 +02:00
Per-program Flet client app IDs so the dock shows the right icons
This commit is contained in:
1 parent
19bbad33a4
commit
56f10885de
12 files changed
+114
-18
No files matched your search
@@ -35,3 +35,8 @@ Target = "{ApplicationsDir}/SaraTag.desktop"
|
||||
Path = "{ConfigDir}"
|
||||
Kind = "Config"
|
||||
Note = "SaraTag's settings, Records, Libraries, history and Lexicons (Books next to your files are never touched)"
|
||||
|
||||
# Shared with the other Flet programs; see Programs/FletIdentity.py.
|
||||
[[Templates]]
|
||||
Source = "../../FletIdentity.py"
|
||||
Target = "{ProgramDir}/FletIdentity.py"
|
||||
@@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Written by SaraSuite. Runs from the app folder so Flet finds assets/.
|
||||
# The window's app ID, so the desktop matches it to {Name}.desktop (icon, name)
|
||||
# instead of showing every Flet program as "com.appveyor.flet".
|
||||
export FLET_APP_ID="{Name}"
|
||||
# A Flet client copy with the window app ID srhtnin.{Name}, so the desktop
|
||||
# matches the window to {Name}.desktop (StartupWMClass) instead of showing it
|
||||
# as "com.appveyor.flet". Empty if that fails: Flet then uses its own client.
|
||||
export FLET_VIEW_PATH="$("{Python}" "{ProgramDir}/FletIdentity.py" "srhtnin.{Name}")"
|
||||
cd "{AppDir}" || exit 1
|
||||
exec "{Python}" Main.py "$@"
|
||||
@@ -7,4 +7,4 @@ Icon={AppDir}/assets/Icon.png
|
||||
Terminal=false
|
||||
Categories=Utility;Graphics;
|
||||
StartupNotify=true
|
||||
StartupWMClass={Name}
|
||||
StartupWMClass=srhtnin.{Name}
|
||||
Reference in new issue
Block a user