返回 DeepSeek-Reasonix
main.go
1 // Command reasonix-launcher is the permanent thin desktop entry point for the
2 // versioned install layout (v1.20+). It reads InstallRoot/current.json, starts
3 // the active reasonix-desktop binary, and exits. It never counts crashes,
4 // chooses previous versions, or enters a product safe mode.
5 //
6 // Migration compatibility: old shortcuts may still pass "launch", "--detach",
7 // or "--safe-mode". Those tokens are stripped and ignored.
8 package main
9
10 import (
11 "os"
12
13 "reasonix/internal/desktoplauncher"
14 )
15
16 var version = "dev"
17
18 func main() {
19 os.Exit(run(os.Args[1:]))
20 }
21
22 func run(args []string) int {
23 return desktoplauncher.Run(args, version)
24 }
25
26 func resolveDesktopPath(installRoot string) (string, error) {
27 return desktoplauncher.ResolveDesktopPath(installRoot)
28 }
29
30 func stripLegacyLaunchArgs(args []string) []string {
31 return desktoplauncher.StripLegacyLaunchArgs(args)
32 }
33
33 lines GO