-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open plugins folder when running EDMC under other user #1113
Comments
Probably the easiest work around for this is to give permissions on the other user's files to the main user you run as. After all you're only doing this for the user separation so as to keep Journal files separate, right ? |
Except now I test this myself:
We use As this is 'only' looking at the plugins folder I'm tempted to say "just do that via other means". The selection of Journal folder in the Configuration tab does work under these circumstances. |
Ah, wait ... maybe this is because we have a relative path to plugins? That will be working for actual file accesses, but maybe in this scenario it ends up as the |
Ah, this might be a case of the string version for the UI being misleading. We do set So this might just be that the webbrowser.open() bit needs changing to use the full path, not the string version ? What I'm blathering about is that the Settings > Plugins tab shows is So this might be as simple as just using config.plugin_dir_path in that webbrowser call. I'll take a look tomorrow. |
Upon further investigation our code is (mostly) fine.
Ergo this is something to do with I'll document it in Known Issues/Troubleshooting, probably with some advice to just go find the folder manually. |
Note that this: def __plugin_dir_open(self) -> None:
# When running from a 'runas' command the simply webbrowser.open() fails
# on Windows.
if platform == 'win32':
os.system(f'explorer.exe {config.plugin_dir_path}')
else:
webbrowser.open(f'file:///{config.plugin_dir_path}') Does NOT solve the issue. When not runas (but from installed .exe) this works as well as the webbrowser.open() version (excepting that you'll briefly see what looks like a cmd.exe window appear and disappear before the explorer.exe window opens). Under runas you get the cmd.exe flicker, but no explorer.exe window. So definitely an OS Issue. |
Please complete the following information:
EDMarketConnector.log
EDMarketConnector-debug.log
Describe the bug
Getting an error when running EDMC under other user (via
runas
) and trying pressOpen
button in File -> Settings -> PluginsTo Reproduce
Open
button.Open
buttonExpected behavior
EDMC says to me that it can't open this folder for me
Or
EDMC open this folder
Screenshots
Screenshot of the error
Additional context
I use
runas /savecread /user:Computer_2 "C:\Program Files (x86)\EDMarketConnector\EDMarketConnector.exe --suppress-dupe-process-popup --force-localserver-for-auth"
for run EDMC under other user.The text was updated successfully, but these errors were encountered: