|
|
|
@ -47,7 +47,7 @@ func NewApp() *App {
|
|
|
|
|
// startup вызывается при запуске приложения
|
|
|
|
|
func (a *App) startup(ctx context.Context) {
|
|
|
|
|
a.ctx = ctx
|
|
|
|
|
runtime.WindowSetTitle(ctx, "v1.0.3")
|
|
|
|
|
runtime.WindowSetTitle(ctx, "v1.0.4")
|
|
|
|
|
runtime.WindowSetPosition(ctx, 1500, 80)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -103,11 +103,13 @@ func (a *App) StartFarDownloads() string {
|
|
|
|
|
|
|
|
|
|
// StartFarBooks - запускает far для fb2
|
|
|
|
|
func (a *App) StartFarBooks() string {
|
|
|
|
|
cmd := `far "D:\books\2\fb2" "D:\books\2\fb2\images"`
|
|
|
|
|
far := subprocess.New(cmd)
|
|
|
|
|
far.ExecAsync()
|
|
|
|
|
alacritty := subprocess.New("alacritty --working-directory D:/books/2/fb2")
|
|
|
|
|
alacritty.ExecAsync()
|
|
|
|
|
// cmd := `far "D:\books\2\fb2" "D:\books\2\fb2\images"`
|
|
|
|
|
// far := subprocess.New(cmd)
|
|
|
|
|
// far.ExecAsync()
|
|
|
|
|
//alacritty := subprocess.New("alacritty --working-directory D:/books/2/fb2")
|
|
|
|
|
//alacritty.ExecAsync()
|
|
|
|
|
wezterm := subprocess.New("wezterm-gui start -- far d:/books/2/fb2 d:/books/2/fb2/images")
|
|
|
|
|
wezterm.ExecAsync()
|
|
|
|
|
// runtime.LogInfo(a.ctx, "команда выполнена успешно")
|
|
|
|
|
return "ok"
|
|
|
|
|
}
|
|
|
|
|