exaile icon indicating copy to clipboard operation
exaile copied to clipboard

Windows: How to start Exaile without detaching from console?

Open genodeftest opened this issue 8 years ago • 1 comments

I tried running Exaile from console on Windows, but it detaches immediately. This seems wrong.

Steps to Reproduce (for bugs)

  1. open cmd.exe
  2. cd to Exaile installation dir (e.g. C:\Program Files (x86)\Exaile)
  3. run exaile.exe --help
  4. watch output

Expected Behavior

Output of --help, i.e. usage and command line parameters

Current Behavior

Just an empty line. Exaile immediately detaches from command line on many different options. This includes exaile.exe too.

Possible Solution

Do not detach if running on console.

Environment

  • Operating System and version: Windows 10
  • Exaile Version: 4.0.0-beta1 from official installer

genodeftest avatar May 25 '17 19:05 genodeftest

On a non-pyinstaller version of Exaile, we launch via exaile_win.bat, which checks to see if you specified any arguments or not. If you do, then it launches via python.exe (which does not detach), and if you don't then it launches via pythonw.exe (which does detach).

I don't really see a simple way around this when using pyinstaller, unless pyinstaller supports something like this natively. Open to suggestions, however.

virtuald avatar May 25 '17 19:05 virtuald