On 4/6/21 11:50 AM, kf wrote:
On 4/6/21 12:46 PM, kf wrote:
Gnome seems to be canceling ever more functionality with every release. Used to be, when my system came up from a cold start or a reboot, all the windows were in the same place as when the system was shut down. Now gnome just puts all the windows in a senseless pile on the left side of of the screen.
How do other desktop environments-- e.g., Mate, Enlighten, KDE-- handle this?
Thanks.
I should correct myself a little bit... gkrellm has a configuration item which allows it to placed in the same location onscreeen each time it's invoked... but AKAIK it's the only app that does/has this.
In Gtk+2, it was trivial to save window position to persistently to a keyfile and restore the window position when the application was started again. (now that was subject to the window manager you were using providing the ability to restore and place windows, most save that information instead of the app itself, but for the most part, gtk_window_get_position() and gtk_window_set_position() worked on gnome and KDE as both WMs respected the placement hints) Beginning with Gtk+3, much of the actual desktop programming was replaced by Gtkbuilder, a scripted automation of C (huh?). Unlike glade, builder no longer simply generated proposed C code for the programmer to implement, but compiled the builder script into the final executable (more or less) obscuring much of the finer grained control programmer used to have over Gtk. (the finer control was, for the most part, still available but often not implemented in builder or were not documented and changed often between Gtk+3.x and Gtk+3.x+1) So the long and short of it was that many Gtk developers in porting from Gtk+2 to Gtk+3 never implemented many of the old standard features that were present for just above every Gtk+2 app. Further, the Gnome library still provided a way for storing window positions, but for many apps, that ability what one of the first things dropped in the port from Gtk+2 to 3. KDE generally does a good job saving the session information, including window position for non-KDE apps. Firefox itself has now implemented restore window position and it works fine on any desktop from Fluxbox, to KDE3 and on and on. For Gnome3 the recommended way is to ensure you have a session manager installed to let it interact with gnome lib to do this for you. There is even a nice new "javascript" session manager extension for the gnome shell (whee javascript instead of C, nothing to see here... move along...) More detail on this "new way" of doing things discussed at: Gnome: Save And Restore Running Applications And Window Positions With Window Session Manager https://www.linuxuprising.com/2018/04/gnome-save-and-restore-running.html Good luck with that, I'll stick to Gtk+2... -- David C. Rankin, J.D.,P.E.