mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
* fix: resolve Linux window close handler to prevent app hang - Add delete-event callback that properly quits the application when window is closed * feat: Add desktop scaling and fix linux postinst - Implement desktop interface scaling in main.dart using FittedBox. - Add desktop scaling setting UI. - Add desktopScale to storage preference. - Fix typos and logic in Linux postinst script. - Update piliplus.desktop with StartupWMClass. * update Signed-off-by: dom <githubaccount56556@proton.me> --------- Signed-off-by: Shao Guohao <shao.gh.98@gmail.com> Co-authored-by: dom <githubaccount56556@proton.me>
22 lines
626 B
Bash
22 lines
626 B
Bash
#!/usr/bin/env bash
|
|
|
|
ln -sf /opt/PiliPlus/piliplus /usr/bin/piliplus
|
|
chmod +x /usr/bin/piliplus
|
|
|
|
if [ $1 == "configure" ] && [ -x /usr/bin/update-mime-database ]; then
|
|
echo "updating mime database..."
|
|
update-mime-database /usr/share/mime || true
|
|
fi
|
|
|
|
if [ $1 == "configure" ] && [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
echo "updating icon cache..."
|
|
gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor || true
|
|
fi
|
|
|
|
if [ $1 == "configure" ] && [ -x /usr/bin/update-desktop-database ]; then
|
|
echo "configure desktop database..."
|
|
update-desktop-database -q /usr/share/applications || true
|
|
fi
|
|
|
|
exit 0
|