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

macOS Ventura: "Background Item Added" notification on each boot #118

Closed
erikw opened this issue Jan 31, 2023 · 6 comments · Fixed by #132
Closed

macOS Ventura: "Background Item Added" notification on each boot #118

erikw opened this issue Jan 31, 2023 · 6 comments · Fixed by #132

Comments

@erikw
Copy link

erikw commented Jan 31, 2023

Hello, first thanks for an amazing tool! This has really simplified my own homegrown hacky solution of several bash and apple scripts I had developed to preserve my tmux env on reboot.

However now since macOS 13 Ventura on a system with tmux-continuum configured with Automatic Tmux start, each time the system boots up there is now a notification". This notification is a bit annoying - it's useful the first time but not anything one needs to see every boot.

Screenshot 2023-01-30 at 10 40 30

The other app in this screenshot, Clipy, has an open issue for this very same problem:
Clipy/Clipy#519
from maybe we can learn a bit on how to solve this!

@erikw
Copy link
Author

erikw commented Feb 1, 2023

I notice that these notifications comes also when starting a new tmux session in general; it came even 2 times when I started a new tmux session (with no other running already)

Screenshot 2023-02-01 at 11 00 33

@PBHDK
Copy link

PBHDK commented Apr 28, 2023

Hi!

Facing the same problem. Any update on this?

Also, @erikw , is the script working for you at all? I get the notifications, but iTerm isn't starting reboot.

@erikw
Copy link
Author

erikw commented Apr 28, 2023

@PBHDK iTerm does start for me at boot still.

@bruno-
Copy link
Member

bruno- commented May 2, 2023

I confirm I get the same behavior ("Background Item Added" notification) after every reboot.

This may have to do with writing the launchd plist file every time tmux-continuum runs:

echo "$launchd_plist_file_content" > "$osx_auto_start_file_path"

If someone wants to troubleshoot this:

  • I'd first check if the notification pops if the above line is commented out.
  • If that fixes the problem, then I think we only want to write launchd plist file if the template content changed.

@d8n1z
Copy link

d8n1z commented May 23, 2023

can confirm that commenting line 68 out works out, as @bruno- suggested. A good PR any1?

> sw_vers
ProductName:            macOS
ProductVersion:         13.2.1
BuildVersion:           22D68
---
> cat .tmux.conf
...
# save interval
set -g @continuum-restore 'on'
set -g @continuum-save-interval '15'

# auto-start at boot
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'iterm'
...

@nk-tedo-001
Copy link

I confirm I get the same behavior ("Background Item Added" notification) after every reboot.

This may have to do with writing the launchd plist file every time tmux-continuum runs:

echo "$launchd_plist_file_content" > "$osx_auto_start_file_path"

If someone wants to troubleshoot this:

  • I'd first check if the notification pops if the above line is commented out.
  • If that fixes the problem, then I think we only want to write launchd plist file if the template content changed.

I try to comment this line and then run tmux source .tmux.conf no popup showed up.
When I uncomment and re-run the command, the popup appears.

rmartine-ias added a commit to rmartine-ias/tmux-continuum that referenced this issue Dec 8, 2023
Saving this file triggers a notification saying that a background item
was added. This happens on startup, every time. It is annoying.

Fixes: tmux-plugins#118
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants