Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
feeabdad
Unverified
Commit
feeabdad
authored
Jun 08, 2025
by
Daniel Hiltgen
Committed by
GitHub
Jun 08, 2025
Browse files
spawn desktop quickly (#11011)
Give the desktop app a hint to start fast.
parent
fc030961
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cmd/start_darwin.go
cmd/start_darwin.go
+1
-1
cmd/start_windows.go
cmd/start_windows.go
+1
-1
No files found.
cmd/start_darwin.go
View file @
feeabdad
...
...
@@ -23,7 +23,7 @@ func startApp(ctx context.Context, client *api.Client) error {
return
errors
.
New
(
"could not find ollama app"
)
}
path
:=
strings
.
Split
(
link
,
"Ollama.app"
)
if
err
:=
exec
.
Command
(
"/usr/bin/open"
,
"-j"
,
"-a"
,
path
[
0
]
+
"Ollama.app"
)
.
Run
();
err
!=
nil
{
if
err
:=
exec
.
Command
(
"/usr/bin/open"
,
"-j"
,
"-a"
,
path
[
0
]
+
"Ollama.app"
,
"--args"
,
"--fast-startup"
)
.
Run
();
err
!=
nil
{
return
err
}
return
waitForServer
(
ctx
,
client
)
...
...
cmd/start_windows.go
View file @
feeabdad
...
...
@@ -47,7 +47,7 @@ func startApp(ctx context.Context, client *api.Client) error {
}
cmd_path
:=
"c:
\\
Windows
\\
system32
\\
cmd.exe"
cmd
:=
exec
.
Command
(
cmd_path
,
"/c"
,
appExe
,
"hid
d
e
n
"
)
cmd
:=
exec
.
Command
(
cmd_path
,
"/c"
,
appExe
,
"
--
hide
"
,
"--fast-startup
"
)
cmd
.
SysProcAttr
=
&
syscall
.
SysProcAttr
{
CreationFlags
:
0x08000000
,
HideWindow
:
true
}
cmd
.
Stdin
=
strings
.
NewReader
(
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment