-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Relative path for livestreamer/video player executable & settings for portable setup #237
Comments
You can set custom paths for both livestreamer and your video player in the settings menu. This doesn't even require advanced settings to be enabled. If you're unable to launch livestreamer from a custom location, then it's not the fault of the GUI. It is only looking for the livestreamer executable in directories of the system's You can also tell the GUI to create the config folder at a different place by launching it with the |
Over simplified folder structure & relative paths to the executables set in the Settings in my attempt to create a portable version of GUI without running any installers.
I downloaded livestreamer-twitch-gui-v0.13.0-win32.zip, extracted this and moved mpc-hc player+livestreamer in this folder, set paths to livestreamer and video player executables as listed above in the Settings through the GUI. Moving the config folder to the livestreamer gui directory works, but |
Right, you need a shortcut with the data path parameter for the GUI, or else it doesn't know where your config folder is located. Simply use the Then go to the settings menu, set the livestreamer executable path to
This absolutely does work, unless you have messed up the config file itself. Livestreamer doesn't report this error correctly and will just complain about invalid arguments. If it works from the shell, it will work from the GUI, too. The GUI does parse the custom livestreamer parameters correctly.
No. The installer doesn't magically change the logic of livestreamer. It just installs a local python runtime alongside livestreamer and upgrades your system's |
Set the paths as mentioned and get the same errors as described in the first post. Changing working directory to use relative paths would be leaving the 'Start in' blank in the shortcut, which doesn't work; or setting it to be the same folder, which won't work if you get assigned different drive letters when the folder is on a usb drive. Setting There is no |
Sorry for not responding, I'm busy with other stuff right now... The main issue here (on Windows) is the way how nw-builder is compiling the application. The app content is being appended to the NW.js binary during compilation and when launching the executable, it's being extracted into a temp directory. NW.js is then starting a sub-process and is reading the extracted app content from there. The issue is basically NW.js using a different CWD in the sub-process than the main-process. I don't know if this is intended, but it definately breaks it in this case here. I didn't notice this, because I was testing the relative directories while launching the application on Windows from my repo by running Since the new NW.js releases Another way of fixing this could be the builder implementing another compilation method and using a |
Okay, I think I have fixed the issue. See 2e30ccf#diff-bdc31e004b6810cec4c935bf20daa497R12 This is how you can test it (requires git, nodejs and npm): git clone --branch cwd-fix https://github.com/bastimeyer/livestreamer-twitch-gui.git
cd livestreamer-twitch-gui
npm install -g grunt-cli bower
npm install
# run this for a debug build
grunt build compile
# or this for a release build
grunt release The executable can be found in the Thanks. |
Tried creating a portable version of the GUI by moving livestreamer + video player into the gui folder.
Expected vs. Actual behavior
Set relative paths to livestreamer in Executable location & Videoplayer and expected everything to work as intended. Instead of launching a video player it throws errors about missing dependencies/executables and thus watching streams only works with absolute paths to the required files.
Reproduction steps
Executable location
and/orVideoplayer
paths to be relative to the Livestreamer GUI executable/folder (without modifying PATH system variable)Environment details (operating system/video players)
Other
For a true portable GUI having the option to move
%LOCALAPPDATA%\livestreamer-twitch-gui
inside the Livestreamer GUI folder so you don't have to log in to Twitch when switching devices would also be neat.The text was updated successfully, but these errors were encountered: