ratt-ru / tigger

Local Sky Model (LSM) manager and FITS image viewer
8 stars 9 forks source link

tigger on wsl #145

Open landmanbester opened 2 years ago

landmanbester commented 2 years ago

I am running wslg under windows 11 and I have some issues with how the app is positioned on the screen. Figure this must be wsl related. Help would be appreciated

razman786 commented 2 years ago

Please try the following:

Using VcXSrv add the following parameters when launching:

-ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto

Then in Ubuntu set the xserver display in ~/.bashrc

export DISPLAY=$(ip route | awk '{print $3; exit}'):0
export LIBGL_ALWAYS_INDIRECT=1
export XCURSOR_SIZE=16

Then install the xcb dependencies:

sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev

From https://forum.qt.io/topic/127696/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/27

razman786 commented 2 years ago

also:

sudo apt-get install libxkbcommon-x11-dev
landmanbester commented 2 years ago

Thanks @razman786. Opening a .fits file directly from the command line works as expected. The only remaining issue is that, if I launch tigger without any arguments and then load up an image the window jumps off the screen for me. Otherwise it's all running smoothly. Running master branch in a python3.8 venv

razman786 commented 2 years ago

Note to self: Check when using 'load image' menu the screen re-centre coords after the new QWT plot is loaded.