ThaUnknown / miru

Bittorrent streaming software for cats. Stream anime torrents, real-time with no waiting for downloads.
https://miru.watch
GNU General Public License v3.0
2.13k stars 123 forks source link

[Bug]: Opening external player in Windows requires Running as Administrator #460

Closed dragonfleas closed 3 weeks ago

dragonfleas commented 3 weeks ago

Preflight checklist

What app version are you using?

v5.1.4

What operating system version are you using?

Windows

Expected Behavior

I expect the executable to be invoked without the need to run as administrator, as long as I have proper permissions to launch it.

If this is intended behavior, do you think we could add a new note to the setting card in section in https://github.com/ThaUnknown/miru/blob/8902833ee3241db4b50c5be94d994d6cd01bb9fc/common/views/Settings/PlayerSettings.svelte#L152-L157 Like Requires running as administrator on Windows

If this is a bug, can you assign this to me? I'd like to fix it myself.

Actual Behavior

Process is not invoked, there are no error messages or indications telling you that as well. Default player is black, content is loading in, but player (in this case mpv) is not launched.

Screenshots

No screenshot needed for this.

dragonfleas commented 3 weeks ago

I'm going to test out using the electron native way of spawning a child_process instead of utilizing node's native spawn function. Could be some strange windows permission discrepancy between the two. I think utilityProcess is a 1:1 with node's spawn API so it should work.

ThaUnknown commented 3 weeks ago

administrator isnt needed for this tho?

dragonfleas commented 3 weeks ago

administrator isnt needed for this tho?

This ended up being that I happened to select multiple torrents that's streams didn't complete and on the next launch as administrator it circumstantially finished the download. Disregard this issue, I'll close it. Whoops! lmao