MCMi460 / NSO-RPC

Connect your Nintendo Switch playing status to Discord!
328 stars 32 forks source link

Multiple Accounts #135

Open luni-moon opened 8 months ago

luni-moon commented 8 months ago

I had an idea, since this application uses two switch accounts, since many will have two just to use this, and some may use their alt for other stuff, why not allow us to log in to two or more Nintendo accounts, to switch what user game is displayed, without having to log out, and into the other account, as you can't friend yourself to display the RPC. If you have two accounts, and one is used for some gaming, it is not showing all the RPC, it only shows for the account it is in essence following through the application.

luni-moon commented 6 months ago

Does this sound like a viable request? Just checking in as it's been around a month.

HotaruBlaze commented 6 months ago

It's possible to run one of the instances in portable mode by making a NSO-RPC_Data folder beside a copy of the application.

This only currently works in the pre release build.

luni-moon commented 6 months ago

Ah. Would be nice to be built in, as one. Or is there a limitation?

HotaruBlaze commented 6 months ago

It was designed as a workaround for other issues around permissions on mac-os and linux, however it'd also do what you are asking for, with some work setting up multiple autostarts.

But it was just never designed for the multi account support and assumed to be only targeting a specific nso user.

luni-moon commented 6 months ago

It was designed as a workaround for other issues around permissions on mac-os and linux, however it'd also do what you are asking for, with some work setting up multiple autostarts.

But it was just never designed for the multi account support and assumed to be only targeting a specific nso user.

Is it fine if I try to figure out how to get multiple accounts on one instance of NSO-RPC? I'll make a PR if I figure it out. I’m sure in the future people may not want to have a separate portable instance when they have 2+ accounts. I am not 100% sure, but if it's to fix permission issues on macOS and Linux, it may cause problems. Although you can have multiple portable instances for other programmes, so who knows!

HotaruBlaze commented 6 months ago

It was designed as a workaround for other issues around permissions on mac-os and linux, however it'd also do what you are asking for, with some work setting up multiple autostarts. But it was just never designed for the multi account support and assumed to be only targeting a specific nso user.

Is it fine if I try to figure out how to get multiple accounts on one instance of NSO-RPC? I'll make a PR if I figure it out. I’m sure in the future people may not want to have a separate portable instance when they have 2+ accounts. I am not 100% sure, but if it's to fix permission issues on macOS and Linux, it may cause problems. Although you can have multiple portable instances for other programmes, so who knows!

Most of the permission issues are already dealt with, but portable mode is just a fallback for some people when the default code does not work. I wouldn't worry about that part of the code

luni-moon commented 6 months ago

I meant for adding multiple account support. Sorry, I should have explained better.