mirror of
https://git.srhtnin.garden/sarah/SaraSuite.git
synced 2026-10-15 02:33:17 +02:00
Per-program window app IDs so the dock matches desktop entries
This commit is contained in:
1 parent
f17e29705f
commit
19bbad33a4
8 files changed
+17
-1
No files matched your search
@@ -39,7 +39,7 @@ def _SetMenuEntry(Enabled: bool) -> None:
|
||||
"[Desktop Entry]\nType=Application\nName=SaraSuite\n"
|
||||
"Comment=Install, update and remove Sara programs\n"
|
||||
f"Exec={_AppImage}\nIcon={_MenuIcon}\nTerminal=false\n"
|
||||
"Categories=System;\nStartupNotify=true\n"
|
||||
f"Categories=System;\nStartupNotify=true\nStartupWMClass={AppName}\n"
|
||||
)
|
||||
|
||||
|
||||
@@ -234,4 +234,7 @@ if __name__ == "__main__":
|
||||
from Cli import Run
|
||||
|
||||
sys.exit(Run(sys.argv[1:]))
|
||||
# The window's app ID, so the desktop matches it to SaraSuite.desktop
|
||||
# (icon, name) instead of showing it as Flet's generic "com.appveyor.flet".
|
||||
os.environ.setdefault("FLET_APP_ID", AppName)
|
||||
ft.run(Main, assets_dir=str(AssetsDir))
|
||||
Reference in new issue
Block a user