JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.61k stars 2.57k forks source link

JabRef opens on full screen and toolbar doesn't work #11530

Open RPadial opened 3 months ago

RPadial commented 3 months ago

JabRef version

5.15 (latest release)

Operating system

GNU / Linux

Details on version and operating system

Ubuntu 20.04 and Linux Mint 21.3 (Ubuntu 22.04)

Checked with the latest development build (copy version output from About dialog)

Steps to reproduce the behaviour

  1. Intall Jabref
  2. Have 2 screens connected and switched on
  3. Open Jabref
  4. Check Jabref opens on full screen and toolbar doesn't work I think it is related with having 2 screens. I have disabled one on them and now Jabref is working. Tested with snap, flatpak and native installation

Appendix

...

Log File ``` Paste an excerpt of your log file here ```
wujastyk commented 3 months ago

see #10731

RPadial commented 3 months ago

Working on Linux Mint 21.3. I opened Jabref once with only one screen connected, and afterwards, it always works with two screens. Different behavior in Ubuntu 20.04. After open Jabref with only one screen connected, it open correctly once but it turns to the initial behavior instead.

Siedlerchr commented 2 months ago

Thank you for reporting this issue. We think, that is already fixed in our development version and consequently the change will be included in the next release.

We would like to ask you to use a development build from https://builds.jabref.org/main and report back if it works for you. Please remember to make a backup of your library before trying-out this version.

RPadial commented 2 months ago

It seem jabref_5.16_amd64.deb fixes the issue on Linux Mint 21.3 but not tested on Ubuntu 20.04. purged 5.15 version with apt remove --purge jabref and apt autoremove in order to remove configuration files because previous jabref version was working with the workarund previously described.

Siedlerchr commented 2 months ago

Have you tried resetting the preferences in JabRef? Can you share a screenshot? Or is this about the 2 screens?

RPadial commented 2 months ago

I have just reset preferences and issue is still present

Captura de pantalla de 2024-08-07 20-27-50 The bar to close(minimize the window is not present.

Now the workaround I found doesn't work.

koppor commented 2 months ago

With one screen it works. I used https://github.com/JabRef/jabref/tree/main/scripts/vms/linux-mint-cinnamon and run from source.

I am struggling to get two monitors working in Virtual Box - https://superuser.com/a/207291/138868. This is my blocker to check the issue.

koppor commented 2 months ago

@RPadial Do you have a special window manager or "just" the plain Cinnamon?

RPadial commented 2 months ago

Yes, it works with only one monitor. Just cinnamon but note that issue is also present on Ubuntu desktop with gnome with slightly different behaviour.

koppor commented 2 months ago

Your screenshot shows the second monitor, I assume.

On your first monitor, what does the context menu of the JabRef app icon say?

image

koppor commented 2 months ago

Alt and "left mouse down" and then move with the mouse seems to be the shortcuts to move a window. Can you move it?

RPadial commented 2 months ago

@koppor Yes, that the second monitor. Jabref opens in monitor n. 1 that is the second monitor. Monitor n.2 i set as the main monitor Captura de pantalla de 2024-08-08 07-03-34

This is the screenshot with both monitors: Captura de pantalla de 2024-08-08 07-12-07

Note that if I change main monitor to the n.1, it is working even if I reset the preferences, The issue cold be related with cinnamon/gnome launching windows on monitor n.1 instead of in the main one.

I tried to:

  1. Reset the preferences.
  2. Set monitor n.1 as main monitor.
  3. Launch Jabreb. It is working well on monitor n.1. I do not move it to the monitor n.2 (my main monitor)
  4. Change preferences to set monitor n.2 to be the main one,
  5. Launch again Jabref without resetting preferences. It starts on monitor n.1 with the issue.

In the workaround I moved Jabref window to monitor n.2, so I performed another test:

  1. Reset preferences.
  2. Set monitor n.2 as the main one (this is my worksetup)
  3. Launch Jabref. Window appears on monitor n.1 with the issue.
  4. Change preferences to set monitor n.1 to be the main one and launch Jabreb. It is working.
  5. Move Jabref window to the monitor n.2
  6. Set monitor n.2 to be main one and restart Jabref. It works.
  7. Move again Jabref window to monitor n.1 and restart Jabref. The issue comes again

The the issue is present, there is no way of moving the Jabref window with "Alt + left clic" neither with "Cmd + any arrow key". It only can be minimized or closed with the context menu on the app icon.

All these screeshot and test are performed Jabref 5.15. The workaround doesn't work on Jabref 5.16 because it always launches on monitor n.1 and it doesn't save the previous window's position.

Could you help you to check the differences between the default preferences file and the file after the workaround or any logfile? Which file would you need?

koppor commented 2 months ago

What would be nice, if you tried "--debug" (https://docs.jabref.org/advanced/commandline#debug-mode-debug). JabRef should write out Screen information and which decision it took.

I am going to try for myself; but currently on holiday with less time for JabRef.

RPadial commented 2 months ago

@koppor When the issue is present, mainStages.SIZE_Y changes to 1114.0. My resolution is 1920:1080 in both monitors. Please, find attached the logs files. Note that the issue comes when jabref launches in the monitor is not set to main. I set in the filename in which monitor it launches and which monitor is set to main. log_2024-08-12_08-58-34_launch_2_main_2.txt log_2024-08-12_08-59-28_launch_2_main_1.txt log_2024-08-12_09-01-06_launch_1_main_2.txt log_2024-08-12_09-01-53_launch_1_main_1.txt

koppor commented 2 months ago

I am asking myself if JabRef should do any window management on non-Windows systems. I think, Linux does a very good job on Window management - and JabRef should not do anything regarding remembering screen positions, window size, and maximization state. Thoughts on this?

koppor commented 2 months ago

I spend nearly the whole day to replicate the display settings described at https://github.com/JabRef/jabref/issues/11530#issuecomment-2275004250. Not working. Details at https://forums.linuxmint.com/viewtopic.php?p=2513417#p2513417.

wujastyk commented 2 months ago

I am asking myself if JabRef should do any window management on non-Windows systems. I think, Linux does a very good job on Window management - and JabRef should not do anything regarding remembering screen positions, window size, and maximization state. Thoughts on this?

JabRef 5.16--2024-08-20--6b8c5a3 Linux 6.8.0-40-generic amd64 Java 21.0.2 JavaFX 22.0.2+4

System: Kernel: 6.8.0-40-generic arch: x86_64 bits: 64 compiler: gcc v: 13.2.0 clocksource: tsc Desktop: Cinnamon v: 6.2.9 tk: GTK v: 3.24.41 wm: Muffin v: 6.2.0 vt: 7 dm: LightDM v: 1.30.0 Distro: Linux Mint 22 Wilma base: Ubuntu 24.04 noble

Two monitors.

I think this would be okay for Linux Mint + Cinnamon. Other apps seem to leave window management to Cinnamon. It means that JR will always start in the same location, and may always need to be dragged to the preferred location, I think, but that's not too troublesome.

I am a bit surprised that this issue is still present for other users. It went away completely for me two weeks ago, after the removal of "fullscreen" mode from the JR code.

RPadial commented 1 month ago

Hello, The problem with the dev version is that jabref always launches on screen number 1 in full screen mode, which is not the main one in my setup. If I get to change to the main screen, it comes back to screen number one after restarting jabref, so it is always unsable.

I have experience exactly the same behaviour in ubuntu 20.04.

koppor commented 1 week ago

I have experience exactly the same behaviour in ubuntu 20.04.

Also Cinnamon or another window manager?

wujastyk commented 1 week ago

JabRef 6.0--2024-10-13--4644e8d Linux 6.8.0-45-generic amd64 Java 21.0.2 JavaFX 23+29

Cinnamon v: 6.2.9 Distro: Linux Mint 22 Wilma

Today's JR launched just fine under Linux and Cinnamon. Non-maximized window and with working toolbar.

Good!

RPadial commented 18 hours ago

Same problem with JabRef 6.0

Image