2003-06-11 18:58:57 +08:00
|
|
|
# GIMP sessionrc
|
2003-10-06 06:09:58 +08:00
|
|
|
#
|
|
|
|
# This file takes session-specific info (that is info, you want to keep
|
2015-01-16 01:58:50 +08:00
|
|
|
# between two GIMP sessions). You are not supposed to edit it manually, but
|
|
|
|
# of course you can do. The sessionrc will be entirely rewritten every time
|
|
|
|
# you quit GIMP. If this file isn't found, defaults are used.
|
2003-06-11 18:58:57 +08:00
|
|
|
|
2015-01-16 01:58:50 +08:00
|
|
|
(session-info "toplevel"
|
|
|
|
(factory-entry "gimp-empty-image-window")
|
|
|
|
(position 200 100)
|
|
|
|
(size 640 480))
|
|
|
|
(session-info "toplevel"
|
|
|
|
(factory-entry "gimp-single-image-window")
|
etc: smaller default position and size of main image window.
Existing default was requesting a window of size 1024×768 at position
(200,100). While it may seem a reasonable default on nowadays displays,
it was not on some intermediate size displays which are considered HiPPI
anyway.
Taking my personal example, my screen is 2560×1440, which is considered
HiPPI by GNOME 3 with a scale ratio of ×2. As a consequence, setting a
size of 1024×768 was actually creating a window of 2048×1536, which is
already higher than the screen. Worse, gtk_window_resize() resize the
window without taking into consideration the title bar, which in my case
added 74 pixels, so GIMP window started at 1610 pixels of height, much
bigger than my screen size, hence unusable (and for some reason, with
the title bar out of the screen so without knowing Super+click shortcut
to move or Super+Up to maximize, people would have a hard time to resize
or close GIMP).
This issue only happens at the first launch of GIMP, when no user
sessionrc exists yet. Once you resize yourself the main window, then
restart GIMP, it is fine (as next times, it will use the user's
sessionrc). Yet it is already a bad first impression.
For temporary workaround, let's use a smaller 800×600 defaults (which
will actually span on 1600×1200 pixels + decoration size on scale ratio
×2).
Still I don't like using arbitrary numbers for window size default.
As we see here, it can end up into all sort of weird result. Even more
with all the scale ratio business which didn't exist back in GTK+2.
Instead, the defaults should have no size, and our code should just
resize to whatever makes the most sense on the current display, which I
believe should likely be maximized. Unfortunately I have a hard time
with gtk_window_maximize() which doesn't seem to do anything at all
(does GNOME ignore _NET_WM_STATE_MAXIMIZE_* hints when requested by
applications maybe?). So until we find the right system, let's go with
this lower window size defaults at least.
2020-09-28 03:40:36 +08:00
|
|
|
(position 0 0)
|
|
|
|
(size 800 600)
|
2003-06-11 18:58:57 +08:00
|
|
|
(open-on-exit)
|
2015-01-16 01:58:50 +08:00
|
|
|
(aux-info
|
|
|
|
(left-docks-width "188")
|
|
|
|
(right-docks-width "205")
|
|
|
|
(maximized "no"))
|
2010-02-02 15:35:26 +08:00
|
|
|
(gimp-toolbox
|
2015-01-16 01:58:50 +08:00
|
|
|
(side left)
|
2003-06-11 18:58:57 +08:00
|
|
|
(book
|
2015-01-16 01:58:50 +08:00
|
|
|
(current-page 0)
|
2010-05-26 23:20:55 +08:00
|
|
|
(dockable "gimp-tool-options"
|
2015-01-16 01:58:50 +08:00
|
|
|
(tab-style automatic)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true")))
|
|
|
|
(dockable "gimp-device-status"
|
|
|
|
(tab-style automatic)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true")))
|
|
|
|
(dockable "gimp-undo-history"
|
|
|
|
(tab-style automatic)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true")))
|
|
|
|
(dockable "gimp-image-list"
|
|
|
|
(tab-style automatic)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true")))))
|
2010-02-02 15:35:26 +08:00
|
|
|
(gimp-dock
|
2015-01-16 01:58:50 +08:00
|
|
|
(side right)
|
|
|
|
(book
|
|
|
|
(current-page 0)
|
|
|
|
(dockable "gimp-brush-grid"
|
|
|
|
(tab-style automatic)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true")))
|
|
|
|
(dockable "gimp-pattern-grid"
|
|
|
|
(tab-style automatic)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true")))
|
|
|
|
(dockable "gimp-font-list"
|
|
|
|
(tab-style automatic)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true")))
|
|
|
|
(dockable "gimp-document-list"
|
|
|
|
(tab-style automatic)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true"))))
|
2003-06-11 18:58:57 +08:00
|
|
|
(book
|
2015-01-16 01:58:50 +08:00
|
|
|
(position 336)
|
|
|
|
(current-page 0)
|
2006-02-20 19:33:29 +08:00
|
|
|
(dockable "gimp-layer-list"
|
2015-01-16 01:58:50 +08:00
|
|
|
(tab-style automatic)
|
|
|
|
(preview-size 32)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true")))
|
2006-02-20 19:33:29 +08:00
|
|
|
(dockable "gimp-channel-list"
|
2015-01-16 01:58:50 +08:00
|
|
|
(tab-style automatic)
|
|
|
|
(preview-size 32)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true")))
|
2006-02-20 19:33:29 +08:00
|
|
|
(dockable "gimp-vectors-list"
|
2015-01-16 01:58:50 +08:00
|
|
|
(tab-style automatic)
|
|
|
|
(preview-size 32)
|
|
|
|
(aux-info
|
|
|
|
(show-button-bar "true"))))))
|
|
|
|
|
|
|
|
(hide-docks no)
|
|
|
|
(single-window-mode yes)
|
|
|
|
(tabs-position 0)
|
|
|
|
(last-tip-shown 0)
|
2003-06-11 18:58:57 +08:00
|
|
|
|
|
|
|
# end of sessionrc
|