tombonez / noTunes

A simple macOS application that will prevent iTunes or Apple Music from launching.
MIT License
3.56k stars 59 forks source link

Showing icon by start noTunes application #29

Open jt3k opened 2 years ago

jt3k commented 2 years ago

it would be great if you could return the display of a hidden icon by launching an already running application

fabiensc0ville commented 2 years ago

Clearly a huge User Experience improvement

ryouze commented 2 years ago

You can use the following shell function as a workaround: notunes-show () { osascript -e 'quit app "noTunes"'; defaults delete digital.twisted.noTunes; open -a noTunes } It quits the program, re-enables the menu bar icon (as stated in README.md, then starts the program again.

Put it in ~/.zshrc, then either run . ~/.zshrc or re-open the terminal. Use notunes-show to run the function.

Screen Shot 2022-07-22 at 18 23 21
jt3k commented 2 years ago

You can use the following shell function as a workaround:

Thanks for the suggestion. there really is no problem to run a command with a key, it's just that few people do it. usually the program is added to startup and is only remembered when the application music really necessary.