sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

[Duplicate of #304] Raise window when new document is opened

Open navdeeprana opened this issue 2 years ago • 7 comments

I am unable to reopen #304, so opening a new issue. I noticed the following:

  • If sioyek was launched from gui, for example by double clicking a pdf, then opening another pdf via gui or from terminal fails to raise the window.
  • If sioyek was launched from terminal, for example using sioyek test.pdf, and another pdf is opened using gui it fails, however if I open the pdf from another terminal, the window is raised.

navdeeprana avatar Oct 10 '22 09:10 navdeeprana

I am unable to reproduce this issue on my system.

  • Which sioyek version are you using?
  • What operating system are you using?
  • If using linux, which window manager?

ahrm avatar Oct 10 '22 12:10 ahrm

Sorry, here is the information

Sioyek 1.5.0
Arch Linux 5.19.13-arch1-1
Cinnamon 5.4.12, muffin (mutter) 5.4.7

navdeeprana avatar Oct 10 '22 14:10 navdeeprana

Does the issue happen with the latest experimental build here: https://github.com/hexomancer/sioyek/releases ?

ahrm avatar Oct 10 '22 14:10 ahrm

I checked it and yes, it does. Is it possible to run sioyek in debug mode?

navdeeprana avatar Oct 10 '22 14:10 navdeeprana

You'll have to compile it yourself in debug mode.

ahrm avatar Oct 10 '22 15:10 ahrm

And how do I do that? Build instructions do not mention it.

navdeeprana avatar Oct 12 '22 10:10 navdeeprana

Modify this line: https://github.com/ahrm/sioyek/blob/4b89a80b4f491771cd032aad259fec8470ab4652/pdf_viewer_build_config.pro#L10 to this:

CONFIG += c++17 debug

ahrm avatar Oct 12 '22 10:10 ahrm