If you create the following plist in ~/Library/LaunchAgents, macOS will set that env variable every time you log in (except if you tell it to reopen windows when logging back in). Change "NAME.OF.FILE" to the plist's filename without the .plist extension.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>NAME.OF.FILE</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>launchctl setenv SLACK_DEVELOPER_MENU true</string>
</array>
</dict>
</plist>I suppose I could use Hammerspoon to script hotkeys that jump straight to a Chrome tab with the right title, but that sounds like a lot more work than just binding a key combo to focus "Slack.app" (which is what I currently do).
My favorite Electron app is Balena Etcher. It is "dd" but uses 200MB of RAM. It is AMAZING.
I tried this app and it was beyond awful. I went back to `dd`.
Discord has options for streaming your game to others, identifying running processes to display games as your status, downloading and launching games, and displaying a chat overlay on top of external game processes.
Some of those can be accomplished in a roundabout way without native code, but I think it's safe to say Discord benefits from that ability.
Seriously? I thought it was just a networking protocol. Can you please provide some examples so I can dig in further?
* streaming your game to others - I know that there are window capture APIs in browsers now, or at least in WebExtensions[0]. Then you stream the result over WebRTC, makes perfect sense to me.
* identifying running processes to display games as your status - Does WebRTC really have access to inspect running processes? That's horrifying.
* downloading and launching games - By downloading here I meant managing your installed games like an app store. They had everything from 2D games like Hollow Knight to open world 3D games that require a decent amount of horsepower like Saints Row. It looks like they've actually killed this feature, but either way I'm not really sure how WebRTC helps manage installed applications.
* displaying a chat overlay on top of external game processes - I can imagine how you'd accomplish this via WebRTC for games that expose an API to enable it, but rendering on top of an arbitrary game doesn't seem like something WebRTC allows.
[0]: https://chrome.google.com/webstore/detail/chrome-remote-desk...
I’ve made electron apps that load a website I have no control over and added features to it, including new styling, keyboard shortcuts, and command-line flags.
I would have built a native app, but documentation on making macOS app is awful while electron’s documentation is top notch.
Only regular menu appears on right-click.
SLACK_DEVELOPER_MENU=true /Applications/Slack.app/Contents/MacOS/Slack
It worked for me:
export SLACK_DEVELOPER_MENU=true
open /Applications/Slack.app
SLACK_DEVELOPER_MENU=true /Applications/Slack.app/Contents/MacOS/Slack
Small nitpick, though. The dock is what runs the app switcher, not the Finder.