This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Main Menu does not show up on every first start of GIMP

Tags: None
(comma "," separated)
User avatar
madjoe
Registered Member
Posts
17
Karma
0
OS
I'm on Manjaro KDE Plasma and right until the last update everything worked smoothly, but now when I open GIMP, the main menu doesn't show up. My GIMP window starts maximized. I usually need to move to another virtual desktop for a moment and then go back to the one that has GIMP in it and then the menu shows up! I'm able to replicate this behavior every time.

Before:
Image

After:
Image

Previously reported here:
https://gitlab.com/vala-panel-project/v ... issues/329
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Hi!

Try to use another GTK-Theme in [i]systemsettings5 - Appearance - Application Style - GNOME/GTK Application Style. (Finally gimp 2.10.20-1 works with the default Breeze theme as expected, just the colors are a bit messed up while saving/loading a file).
User avatar
madjoe
Registered Member
Posts
17
Karma
0
OS
I tried "Breath" and even "Default" for GTK3, couldn't find "Breeze" there, but the behavior was still unchanged.

Image
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Could you have a look at the error messages starting gimp via Konsole or consult journalctl -b -xep 0..4 for matching problems? I do not know what Manjaro has changed comparing to arch linux, but obvious it is more than I expected :)

Also have a look at the pacman.log — which packages were updated?
User avatar
madjoe
Registered Member
Posts
17
Karma
0
OS
Sure, here's my log from the exact time I started Gimp: https://hastebin.com/ayulitukob.rb
My pacman.log and journalctl:
Code: Select all
$ grep -iE 'installed|upgraded' /var/log/pacman.log
https://hastebin.com/amalikogec.makefile
$ journalctl -b -xep 0..4
https://hastebin.com/kibimihelu.rb
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
The error messages were not really helpful and I cannot reproduce this with arch in any way. Are you sure you didn't disable the menu bar in fullscreen mode which disables on screen switch? (there is an option in the preferences)
User avatar
madjoe
Registered Member
Posts
17
Karma
0
OS
User avatar
madjoe
Registered Member
Posts
17
Karma
0
OS
I just tested opening GIMP again, then putting it to a normal window (not a full screen) size - I still didn't see the menu, but then I changed focus with a mouse from GIMP window to desktop, then change the focus back to GIMP - and there it is - the menu mysteriously appears on top. :-\
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
This is really strange. I've tried a bit around to loose my menu bar, but it is always visible, including single window mode and it always gets active when pressing F10. Perhaps there is an old config issue. Could you try it with a new created user? Apart from the GTK3-config, I don't find any other starting point.

How do you start it maximized? With a KWin-rule? Could you extract the part out of ~/.config/kwinrulesrc? Looks like
Code: Select all
[1]
Description=My gimp custom settings
clientmachine=localhost
clientmachinematch=0
fullscreen=true
fullscreenrule=3
wmclass=gimp
wmclasscomplete=false
wmclassmatch=1
User avatar
madjoe
Registered Member
Posts
17
Karma
0
OS
I created a new user "guest", then I started Gimp as "guest" and I couldn't reproduce that issue again. I switched back to my old account, started Gimp again and then something strange happened... Gimp started with a menu shown on an image below (at the upper half of it) and after a few seconds the menu changed automatically to the one showed at the bottom part of the same image below (which is a regular GIMP menu).
Image

I'm really not sure what's happening and what triggers such an odd behavior. :o

The following line returns an empty string:
Code: Select all
$ cat ~/.config/kwinrulesrc | grep gimp


The Gimp's menu I'm referring to on my screenshots is actually a "Global Menu" widget inside my Plasma panel. I also use the following tiling manager, if that makes any difference. Maybe you could try it to check if you could reproduce the same issue on your side with the following tool:
https://github.com/lingtjien/Grid-Tiling-Kwin

Are there any cached/old config files I should flush, or similar?
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
I'm sorry, but I cannot see your uploaded images as I am behind a very restrictive router… The Tiling Script you're refering to has an option to hide client title bars. Perhaps you can check this first before reconfiguring your main user config. The good thing is, we now know it is only a config issue and nothing bad as your second user works.

I can test this script these days on my second user. It is all implemented in JavaScript, so the basic Qt/KDE-Algorithms are still valid. Could be a simple wrong size or so in a config file.
User avatar
madjoe
Registered Member
Posts
17
Karma
0
OS
Those are settings (for hiding client title bars) you can adjust in KWin which are unrelated to this tiling script. I tried to follow those steps from the link you provided, but couldn't follow it after step 4, because the Settings interface described is probably outdated.

My specific settings for this particular script are:
Code: Select all
Row: 2, 2
Column: 2, 3
Gap size: 5
Divider bounds: 0.3
Divider Step Size: 0.05
Opacity: 1
No Border: YES
No Opacity: NO
Name: texstudio, inkscape, krita, gimp, designer, creator, kdenlive, kdevelop, chromium, kate, spotify, rambox, firefox, viberpc
Space: 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2
Floating Clients:
Floating Captions:
Ignored Clients: wine, overwatch, kcalc, yakuake, audacious, deadbeef, atom, eclipse, code, deja-dup, vlc, gwenview, xsane, xsane-gimp, kodi, kodi-standalone, steam, anydesk, konsole, mpv, deja-dup
Ignored Captions: Trace Bitmap (Shift+Alt+B), Document Properties (Shift+Ctrl+D), Media viewer
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
I'm still not able to reproduce. Using the tiling script, there is sometimes a odd behaviour hiding new windows behind the gimp, or cutting of menus; but it never looses its main frame / menu "line". Seems there is anything in your configuration messed up, but without reproducing it is hard to track down.

If it is a gimp only issue, try moving away or renaming the ~/.config/GIMP-Folder. That creates a clean gimp-config. Do you have other KWin-Scripts activated?
User avatar
madjoe
Registered Member
Posts
17
Karma
0
OS
There's another small KWin script, but it's the default one: Desktop Change OSD. I even tried disabling it and still no luck.
I even tried to rename the ~/.config/GIMP into ~/.config/_GIMP, then started GIMP, which created the new ~/.config/GIMP. The geometry was different (much larger icons), but other than that the menu's behavior was still unchanged - same as before.

koffeinfriedhof wrote:Seems there is anything in your configuration messed up, but without reproducing it is hard to track down.

Not sure what config may have caused this, since imo the only thing I could think of would be easy to spot in ~/.config/kwinrulesrc and there's nothing related to GIMP over there. My other apps work flawlessly. :-\

Did you use Arch, or Manjaro in VM when trying to reproduce that?
How about this: System Settings > Workspace > Window Management > Window Behavior
Window Activity Policy: Focus follows mouse (mouse precedence)
Delay focus by: 300ms
Focus Stealing prevention: Low
Click raises active window: YES
Raise on hover: NO

Could it be that GIMP for some reason loses focus right after the main window is loaded, so no menu is displayed in Global Menu...
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
I'm on native arch linux with Plasma set up on XServer, I tried using the script with a fresh created user. I do use the mouse-following focus anyways, so that should not stop the filemenu from loading / displaying.

The only KWin-entry I recognized was in ~/.config/kwinrc:
Code: Select all
[Script-grid-tiling]
columns=2, 2
gap=5
rows=2, 2

after setting up the grid tiling.

I also tried another tiling manager from store, which also did not hide any GTK3-menu.

Lets have a look at some other stuff:
Code: Select all
grep Updates -A1 ~/.config/plasmashellrc  # normally defaults to org.kde.plasma.desktop/…js
grep kwin -A4 ~/.config/kconf_updaterc  # last updated with script.js - Info

but thats a shot in the dark too… You could try to "enjoy" your plasmashellrc, but it has a real special arrangement for human readers. There are all plasmoids and containments defined. Perhaps you'll find anything related.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]