Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't automatically start on startup / have an option to disable this #162

Open
gregsadetsky opened this issue Jul 21, 2023 · 22 comments · May be fixed by #7097
Open

Don't automatically start on startup / have an option to disable this #162

gregsadetsky opened this issue Jul 21, 2023 · 22 comments · May be fixed by #7097
Labels
feature request New feature or request

Comments

@gregsadetsky
Copy link

Thanks for making this!

I noticed that on macOS (I suppose it's the same on Windows), the app sets itself to open at login. This is done here:

https://github.com/jmorganca/ollama/blob/91cd54016c47b71223e8263c44250766874e05cf/app/src/index.ts#L175,L180

  1. I'm not sure whether that should be the case by default (up for discussion)
  2. I don't remember seeing a warning about this when installing the app (this might be debatable as well)
  3. it would be great to have an option within the app to disable this

Cheers

@mchiang0610
Copy link
Member

mchiang0610 commented Jul 21, 2023

Sorry about that. We will definitely have a setting for disabling automatic start at login.

The quickest workaround right now, before we get to a fix, is to disable via macOS system preferences:

We do respect its settings.

Image 2023-07-21 at 9 23 19 AM

@mchiang0610 mchiang0610 added the feature request New feature or request label Jul 21, 2023
@csterritt
Copy link

Note that this should integrate with bug 283 wherein it prompts to install the command line tools, even if they're installed.

The problem is that if you quit out of ollama without doing that install, the next time it starts up it sets itself to open at startup again.

@panckreous
Copy link

While the os-level setting is definitely respected once we undo it at the os level, I'm hoping to see this changed to an opt-in setting addressed through the application.

In my opinion, it's ok to ask me if I'd like the application to launch on system startup during the install process (checkbox should be off by default), then otherwise I expect to be able to find the setting in the application's preferences.

I find this to be common practice amongst the higher-quality macos applications I use, especially those with menubar-only presences like ollama.

In terms of examples, I find that most of the prodigious Sindre Sorhus' newer menubar apps to be good examples (Velja and Folder Peek, for example, which I assume use his LaunchAtLogin / LaunchAtLogin-Modern libraries to implement) and find almost every single aspect of CleanShot X to be the gold standard

Most importantly: thank all of you for ollama and all the work you continue to put into it

@RockyHandsome8
Copy link

Sorry about that. We will definitely have a setting for disabling automatic start at login.

The quickest workaround right now, before we get to a fix, is to disable via macOS system preferences:

We do respect its settings.
Image 2023-07-21 at 9 23 19 AM

Well, what about windows?

@Gbr22
Copy link

Gbr22 commented Apr 10, 2024

+1 for windows. Is there a windows service where we can change the startup options?

@TehPers
Copy link

TehPers commented Apr 23, 2024

Pretty sure you can change your startup programs in Windows by opening up Task manager. Make sure to open up the advanced view, and there should be a tab for startup apps. (This should be true of old and new Task Manager)

I'll admit I run this through Docker though and don't have any issues with it opening on startup on Windows as a result, so I haven't been able to verify it's there.

@RockyHandsome8
Copy link

It doesn't show on my PC, So is there any other way?

@hichemfantar
Copy link

@mchiang0610 any plans to implement this soon?

@data-miner00
Copy link

I'm on Linux and ollama is also set to start on boot..

@johannesrave
Copy link

i'm on ubuntu and i'd also like to turn automatic start off

@jmorganca
Copy link
Member

For Linux you can try sudo systemctl disable ollama. Let me know if this doesn't work.

@bvwidt
Copy link

bvwidt commented Sep 26, 2024

@RockyHandsome8 and other Windows users: Ollama doesn't show up in the Task Manager's Startup apps.

To let Ollama not start at Windows startup...

  1. go into the startup folder (press Windows + R -> type shell:startup -> click OK / press enter).
  2. delete the shortcut to Ollama.
  3. Be happy.

@nobleinteractive
Copy link

It's ridiculous that I have to manually delete the shortcut in the startup directory after every Ollama update. Is there no way for Ollama to respect this preference on Windows?

@hichemfantar hichemfantar linked a pull request Oct 4, 2024 that will close this issue
@hichemfantar
Copy link

my PR above should fix the issue on macos but i don't understand why the electron app isn't also being used on windows and linux. the entire point of electron is to have one app that targets all platforms.

@hichemfantar
Copy link

I'd appreciate if y'all would upvote and comment on this PR that adds a way toggle auto start behavior to speed up the merge process #7097

@hopperelec
Copy link

+1 for an option to make it not add itself to start-up on Windows after every update. Everywhere I look just suggests disabling it on start-up using task manager or deleting the shortcut, but these are just temporary solutions. I understand it adding itself to start-up when it's first installed, but surely there should be a special case for updates to an existing installation to prevent it from trying to add itself again?

@darkBuddha
Copy link

Still automatically starting on macOS. Please fix this. I know how to disable it, but I shouldn't be forced to use time on this.

@superalbumi
Copy link

remove ollama from automatic startup!

@UdoD5
Copy link

UdoD5 commented Nov 24, 2024

+1 Please add an option in preferences to disable or enable autostart (in any OS).

1 similar comment
@sanathu-simpplr
Copy link

+1 Please add an option in preferences to disable or enable autostart (in any OS).

@Alrecenk
Copy link

Alrecenk commented Jan 3, 2025

+1 Very annoyed that this opened on startup without asking or any indication that it would do so.

@Hullow
Copy link

Hullow commented Jan 8, 2025

On OS X, the app still re-adds itself as a log-in item each time we open it (same issue with running it from a terminal). This is the most problematic bug/feature of the app for me, discouraging its use. Thank you for the project, hope this can be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.