matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
https://xbarapp.com
MIT License
17.5k stars 642 forks source link

xbar not working on Mac OS Monterey 12.1 #800

Open bartvanbokhoven opened 2 years ago

bartvanbokhoven commented 2 years ago

After installing xbar on my Mac the app doesn't start.

maksimov commented 2 years ago

Works for me (v2.1.7-beta). It's been installed pre-upgrade to Monterey. System has complained about this app needing to be updated, but the app works regardless.

colindean commented 2 years ago

I'm on a fresh installation of macOS 12.1 and trying to run xbar 2.1.7-beta installed from Homebrew.

[13:19:17 colin@macbook ~/Source/Personal/hejmo ]
$ tree /Applications/xbar.app/
/Applications/xbar.app/
└── Contents
    ├── Info.plist
    ├── MacOS
    │   └── xbar
    ├── Resources
    │   └── iconfile.icns
    └── _CodeSignature
        └── CodeResources

4 directories, 4 files
[13:19:28 colin@macbook ~/Source/Personal/hejmo ]
$ file /Applications/xbar.app/Contents/MacOS/xbar
/Applications/xbar.app/Contents/MacOS/xbar: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
/Applications/xbar.app/Contents/MacOS/xbar (for architecture x86_64):   Mach-O 64-bit executable x86_64
/Applications/xbar.app/Contents/MacOS/xbar (for architecture arm64):    Mach-O 64-bit executable arm64

Activity Monitor shows it working and running in Apple mode. There's a subprocess "xbar Networking". I see neither an icon nor a spot that's clickable in some random clicking. When I try to quit the app via Activity Monitor, it doesn't quit: I have to force quit to get it to stop.

When I ran /Applications/xbar.app/Contents/MacOS/xbar directly, I got a prompt about file permissions, which I accepted. I see this in the terminal:

xbar v2.1.7-beta
2022/01/27 13:24:12 checking for updates... (current: v2.1.7-beta)
2022/01/27 13:24:12 updates: passive true
2022/01/27 13:24:12 updates: AutoUpdate false
2022/01/27 13:24:12 update: you have the latest version

I'm not able to terminate it with ^C, even multiple invocations. I end up stopping with it with ^Z and killing the process (kill $(jobs -p)).

/Applications/xbar.app/Contents/MacOS/xbar --help produces the same output as without an option.

I recently moved from bitbar and changed some plugin metadata in this commit in my dotfiles and symlinked ln -s ~/.bitbar/work ~/Library/Application\ Support/xbar/plugins.

I'm pretty much dead in the water at this point.

leaanthony commented 2 years ago

Is this on M1 or Intel?

colindean commented 2 years ago

I'm on a shiny new M1 Max 16 inch.

$ sw_vers
ProductName:    macOS
ProductVersion: 12.1
BuildVersion:   21C52
$ uname -a
Darwin macbook 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64
colindean commented 2 years ago

OK so it looks like it is running and working properly but the notch is causing it to be hidden. I just noticed this when I ⌘+Tab'd out of a fullscreen window and the menubar was below the camera notch. Lo and behold, there's my Pomodoro icon and my time logging timer. Switching out of that fullscreen app (a video in Firefox), the menubar goes back up to the top with the notch in the way. Clicking under the notch does nothing: the xbar menus aren't under it.

I guess it's time for me to look into some kind of menubar consolidator app…?

ventz commented 10 months ago

@colindean A bit late - but ran into this with the keyword "notch" and "xbar"

You may want to look at two things: 1.) For your "conslidator app" - https://www.macbartender.com/

2.) As a temp solution -- if you open Applications -> click on xbar.app and cmd+i (or right-click/double-tap and go to Get Info) -> Scale to fit below built-in camera

Hopefully the developer fixes this permanently as now that all macs have a notch, this is very limiting.

colindean commented 10 months ago

Thanks for the nudge! I have been using Bartender since that day without a problem.