-
Notifications
You must be signed in to change notification settings - Fork 12
Attempt to fix for MacOS users (copy environment table) #21
Conversation
The IPC layer for unix uses process environments that aren't copied to the slave processes - this should help, I guess? Added a setting which defines a custom timeout if you're forcing launching Discord - defaults to 30 seconds. Added comments to the config file - slightly questionable but meh
Works on windows. |
I know, it's out there for debugging reasons - I actually intend to remove it in a future commit. Diff reference: |
Got it. |
@theLMGN, @Monkey8729, @GameAddict7 - please give me feedback on whether this works on your machines. Thank you! |
Any news? |
As of now, nothing. I'm going to check whether the MacOS behaviour can be applied to Linux aswell. |
Alrighty. I will see if I can find other MacOS users. Le 2 oct. 2019 00:35, David Duque <[email protected]> a écrit :As of now, nothing.
I'm going to check whether the MacOS behaviour can be applied to Linux aswell.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Update: Linux presents the same behavior of macOSSince they're both Unix derived, I can safely assume this patch applies to both environments:
If we disable the patch we get this: See how the environment variable Since that this fix works, I'm marking this as ready for review. |
The preliminary tests work now, we can proceed.
This should do the trick! 🙂 |
The IPC layer for Unix uses process environments that aren't copied to the slave processes - this should help, I guess?
This probably relates to discordjs/RPC#54
Other changes:
Added a setting which defines a custom timeout if you're forcing launching Discord (it was hardcoded which is not ideal) - defaults to 30 seconds.
Added comments to the config file - it's a slightly questionable way to do this but I don't see a choice for a better way (JSON doesn't natively allow comments).
Developer-wise,
standard
is now a dev dependency of roPresence. Code has been standardized.Version bump to 1.0.5
Will be kept as a draft until a macOS user confirms to me this works!