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

Bug: network module doesn't work on macOS 14.4 and later #256

Closed
pratnala opened this issue Apr 1, 2024 · 6 comments
Closed

Bug: network module doesn't work on macOS 14.4 and later #256

pratnala opened this issue Apr 1, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@pratnala
Copy link
Contributor

pratnala commented Apr 1, 2024

Describe the bug

The airport command has been deprecated on macOS 14.4. This leads to the network module not working as intended.

To Reproduce

Steps to reproduce the behavior:

  1. Enable network plugin in tmux.conf - set -g @dracula-plugins network
  2. Reload tmux
  3. See bottom right to see network name
  4. Nothing is shown

Expected behavior

Network name, if wireless, or Ethernet otherwise, must be shown instead of a blank space.

Screenshots

Screenshot 2024-04-01 at 10 28 54 AM

Network name must show in the blue box but is blank.

System

  • OS: macOS 14.4.1
  • Tmux Version: 3.2a
@pratnala pratnala added the bug Something isn't working label Apr 1, 2024
@amitizle
Copy link

amitizle commented Apr 7, 2024

This is the alternative to airport;

networksetup -getairportnetwork en0 | cut -d ':' -f2 | sed 's/^[[:blank:]]*//g'

@pratnala
Copy link
Contributor Author

Checked in #259 thanks to @amitizle's suggestion

@pratnala
Copy link
Contributor Author

@amitizle This command now doesn't work on macOS 15. Sigh, Apple.

@amitizle
Copy link

@pratnala on every major version update there's some sort of backwards compatibility issue 😵

@pratnala
Copy link
Contributor Author

@amitizle Know any other way to get network name? Not finding a simple enough way.

@Theoreticallyhugo
Copy link
Collaborator

fixes to that are currently being discussed in #291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants