From 0ef2a48e74806a1e47af65a33ccd2eaeca8e1eb8 Mon Sep 17 00:00:00 2001 From: shylinux Date: Wed, 12 Jul 2023 12:50:03 +0800 Subject: [PATCH] opt some --- etc/init.shy | 6 +++--- etc/webview.txt | 1 + src/webview.go | 5 ++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/etc/init.shy b/etc/init.shy index 88d60a04..f8198120 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -28,11 +28,11 @@ ~web.chat.macos applications install "dream" web.dream icon "usr/icons/Mission Control.png" - applications install "compile" web.code.compile icon "usr/icons/go.png" applications install "repos" web.code.git.repos icon "usr/icons/git.jpg" - applications install "Preferences" web.chat.macos.opens args "System Preferences" icon "usr/icons/System Preferences.png" + applications install "compile" web.code.compile icon "usr/icons/go.png" + applications install "Settings" web.chat.macos.opens args "System Settings" icon "usr/icons/System Settings.png" applications install "QuickTime" web.chat.macos.opens args "QuickTime Player" icon "usr/icons/QuickTime Player.png" - applications install "Activity" web.chat.macos.opens args "Activity Monitor" icon "usr/icons/Activity Monitor.png" + applications install "Activity" cli.procinfo icon "usr/icons/Activity Monitor.png" applications install "Preview" web.chat.macos.opens args "Preview" ~aaa diff --git a/etc/webview.txt b/etc/webview.txt index 23e43c42..e7578c9a 100644 --- a/etc/webview.txt +++ b/etc/webview.txt @@ -1,3 +1,4 @@ +# desktop "http://localhost:9020/chat/cmd/web.chat.macos.desktop?debug=true" vimer "http://localhost:9020/chat/cmd/web.code.vimer?debug=true" # vimer "http://localhost:9020/chat/cmd/web.code.vimer" # goods "http://localhost:9020/chat/cmd/web.mall.goods" diff --git a/src/webview.go b/src/webview.go index 409debda..2dd84595 100644 --- a/src/webview.go +++ b/src/webview.go @@ -6,6 +6,9 @@ import ( "shylinux.com/x/ice" "shylinux.com/x/icebergs/base/tcp" "shylinux.com/x/icebergs/base/web" + _ "shylinux.com/x/icebergs/misc/alpha" + _ "shylinux.com/x/icebergs/misc/chrome" + _ "shylinux.com/x/icebergs/misc/java" _ "shylinux.com/x/icebergs/misc/node" "shylinux.com/x/icebergs/misc/webview" kit "shylinux.com/x/toolkits" @@ -14,6 +17,6 @@ import ( func main() { os.Chdir(kit.HomePath(ice.CONTEXTS)) go ice.Run(web.SERVE, tcp.START) - defer ice.Pulse.Cmd("exit") + defer ice.Pulse.Cmd(ice.EXIT) webview.Run(nil) }