Hacker News new | ask | show | jobs
by CraneWorm 2402 days ago
I set the env variable but I can't seem to get the access to devtools?

Only regular menu appears on right-click.

3 comments

Try quitting Slack and just running this from the console.

It worked for me:

export SLACK_DEVELOPER_MENU=true

open /Applications/Slack.app

Instead of using open you can just run the binary inside Slack.app directory:

SLACK_DEVELOPER_MENU=true /Applications/Slack.app/Contents/MacOS/Slack

That's not a great idea. If you don't use open, the app won't show up in the Finder app switcher.
Good point! Thanks for mentioning that.

Small nitpick, though. The dock is what runs the app switcher, not the Finder.

That only works for the Bourne shell. Using `env` is more portable.
slack tends to keep a process in the background that needs to be killed and restarted when you "close" it. did you run `pkill slack` or similar and then restart?
good tip, thank you!
Same for me on macOS.
Try like this:

SLACK_DEVELOPER_MENU=true /Applications/Slack.app/Contents/MacOS/Slack