After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 101198 - pan not gnome2-session compatible?
pan not gnome2-session compatible?
Status: RESOLVED OBSOLETE
Product: Pan
Classification: Other
Component: general
pre-1.0 betas
Other All
: Normal enhancement
: ---
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks: 78646 82370 99721
 
 
Reported: 2002-12-14 11:15 UTC by Udo Rader
Modified: 2011-12-03 18:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Udo Rader 2002-12-14 11:15:32 UTC
upon startup of my gnome2 I want pan to come up automagically. 

so if I start pan and then log out of gnome2 using choose "save current
settings", a message pops up telling me that pan is not capable/willing to
respond to the "save your settings" command and thus will have to be
started manually next time.

is this a feature or a bug ;-)) ?

udo
Comment 1 Christophe Lambin 2003-01-04 23:46:00 UTC
Pan 0.13.2.93 is a gtk2 app, not a gnome2 app.  

We plan to plug the gnome2 code back in a later release.
(charles: want to assign a milestone to that).


Comment 2 bbfk 2006-03-02 19:09:55 UTC
Now is version 0.14.2.91 and this bug has not been dealt with. Is there any hope that pan will be using gnome features. Since the info says "developed for gnome" gnome support should be enclosed ASAP.
Comment 3 Charles Kerr 2006-05-16 21:18:16 UTC
I'm not sure that I'm understanding the docs correctly... is it really
as easy as just calling gnome_program_init with LIGBNOMEUI_MODULE,
calling gnome_master_client(), and handling the save-yourself and die
signals?
Comment 4 bbfk 2006-07-13 17:30:40 UTC
what information do you really need?

I use metacity with 12 different displays. Pan is routinely opened in display 12. When I shutdown the computer, pan is closed.

On reboot, i should appear on display 12 again, but it does not, i appears on display 1 which is not gnome conform.

My computer has the latest unstable configuration which can be found on the debian server. 

Please be more specific when you ask for info! I am only a user and not a developer.
Comment 5 Nick Brown 2006-08-02 21:44:00 UTC
Posted to pan-devel 29th Dec 2002;

I'm seeing the same problem as described in bug report 101198.
ie session management is not working.

I notice that in pan.c that the 2 section of code that deal with setting
up session management are conditional compiled by 
#ifdef GNOME

It is obviously not being compiled.
However I cannot find GNOME defined in my config.h file and no configure
script test that looks for gnome on my machine would and defines it.

How do I get this code to compile without a putting a define GNOME in
pan.c myself?
Mind you, that doesn't work either (I just tried) as it looks like the
necessary includes are missing.
So it looks like this code is just hanging around waiting to be made
useful. 

Are there plans for this code to be used in the next release of Pan?
I'd love to see Pan support session management.
Comment 6 Nick Brown 2006-08-15 13:20:55 UTC
This is in "NEEDINFO" state. What info is required?
I also think the OS field should be set to a generic value, and the version field updated.
Comment 7 Udo Rader 2006-08-15 13:42:41 UTC
OK, being the one who reported this bug 4 years ago (quite a time), I am updating the bug.

Anyhow, as per comment#3, I also don't know either what to do about the NEEDINFO state. How should an enduser provide the information you ask for? Wouldn't that be the task of a developer (at least in my ideal, naive world)?
Comment 8 Nick Brown 2006-08-17 11:57:15 UTC
The gnome-hello example module provides an example of session support.
It certainly references gnome_program_init(), gnome_master_client(), and the save-yourself and die signals.
http://cvs.gnome.org/viewcvs/gnome-hello/src/hello.c?rev=1.10&view=markup
Comment 9 Nick Brown 2006-09-29 15:15:42 UTC
Looking through the source code, I notice that pan appears to use the C verion of GTK (through the use of extern "C").
Why not use libgtkmm, the offical gtk C++ bindings instead?
Or better yet libgnomemm and libgnomeuimm? (These deal with all the nice desktop integation for you, specifically gnome session, and make sure you are largely interface standard compliant)
Comment 10 Nick Brown 2006-09-29 15:17:27 UTC
Forgot the link;
http://www.gtkmm.org/
Comment 11 Charles Kerr 2007-01-22 17:27:13 UTC
Though gtkmm looks very nice, I don't think there's
much chance of my porting Pan to it at this late date. :/

Pan no longer links against the gnome libraries at all.
Is session management the only advantage Pan would gain
by adding these libraries?
Comment 12 Nick Brown 2007-01-22 18:21:18 UTC
Using the gnome libraries, over plain gtk+ has many advantages, which are detailed here;

http://developer.gnome.org/doc/tutorials/gnome-libs/gnome-programming.html

Specifically;
http://developer.gnome.org/doc/tutorials/gnome-libs/using-the-gnome-app-framework.html
http://developer.gnome.org/doc/tutorials/gnome-libs/using-the-libgnomeui-library.html#AEN1364

Basically consistency and integration are the main wins from using it.
Comment 13 Charles Kerr 2007-01-22 21:41:38 UTC
That would that be the same libgnomeui referred to in this wiki page:

   http://live.gnome.org/LibgnomeMustDie
Comment 14 Nick Brown 2007-01-23 18:26:57 UTC
Yes, but a lot remains to be done in this regard.
Specifically GnomeClient is still list in the TODO section of that page, and the proposed replacement that is being worked is tentatively scheduled for gnome 2.20, which not due out for at least a year.
http://live.gnome.org/SessionManagement
Comment 15 Nick Brown 2007-02-09 00:40:17 UTC
As a brief example of how widely this library is used see the command output below. This is just packages I have installed, but includes key components and applications of the gnome desktop, such as evolution, totem, epiphany and ekiga.
This library is still the primary way to integrate your application with the gnome desktop, including session management.

rpm -q --whatrequires libgnome-2.so.0
libgnomesharpglue-1.0.10-9mdv2007.0
gnome-sharp2-2.16.0-1mdv2007.0
libgst-editor0-0.8.0-5mdv2007.0
gst-editor-0.8.0-5mdv2007.0
gnome-volume-manager-2.17.0-2mdv2007.1
libgucharmap5-1.8.0-2mdv2007.1
libgnomekbd1-2.17.2-3mdv2007.1
libmozilla-firefox2.0-2.0-2mdv2007.1
gconf-editor-2.17.0-1mdv2007.1
gnome-keyring-manager-2.17.0-1mdv2007.1
libgnomemm2.6_1-2.16.0-2mdv2007.1
gnome-applets-2.17.1-1mdv2007.1
libgnomeuimm2.6_1-2.16.0-2mdv2007.1
perl-Gnome2-1.041-1mdv2007.1
seahorse-0.9.10-1mdv2007.1
bug-buddy-2.17.3-4mdv2007.1
gnome-python-bonobo-2.17.2-1mdv2007.1
gnome-python-2.17.2-1mdv2007.1
blam-1.8.4-1mdv2007.1
gnome-python-extras-2.14.2-13mdv2007.1
libgail-gnome-1.1.3-2mdv2007.1
desktop-printing-0.20-2mdv2007.1
gnome-spell-1.0.7-2mdv2007.1
gnome-mount-0.5-3mdv2007.1
gnome-desktop-2.17.90-1mdv2007.1
libgnome-desktop-2_2-2.17.90-1mdv2007.1
libpanel-applet-2_0-2.17.90-1mdv2007.1
gnome-panel-2.17.90-1mdv2007.1
ekiga-2.0.4-1mdv2007.1
rhythmbox-0.9.7-3mdv2007.1
libeel2_2-2.17.90-1mdv2007.1
gnome-media-2.17.90-1mdv2007.1
libcddb-slave2_0-2.17.90-1mdv2007.1
nautilus-2.17.90-1mdv2007.1
epiphany-2.17.90-1mdv2007.1
libgnome2-2.17.90-1mdv2007.1
libbonoboui-2.17.90-1mdv2007.1
libbonoboui2_0-2.17.90-1mdv2007.1
libgnomeui2-2.17.90-1mdv2007.1
libgnomeui2_0-2.17.90-1mdv2007.1
libgtkhtml-3.8_15-3.13.6-1mdv2007.1
gtkhtml-3.8-3.13.6-1mdv2007.1
evolution-2.9.6-1mdv2007.1
gnome-screensaver-2.17.6-1mdv2007.1
gnome-session-2.17.90.1-1mdv2007.1
gnome-terminal-2.17.90-1mdv2007.1
eog-2.17.90-1mdv2007.1
file-roller-2.17.90-1mdv2007.1
gcalctool-5.9.11-1mdv2007.1
evince-0.7.1-3mdv2007.1
gnome-system-monitor-2.17.6-1mdv2007.1
gedit-2.17.4-1mdv2007.1
gnome-power-manager-2.17.90-3mdv2007.1
gnome-system-tools-2.17.90-1mdv2007.1
libgnome-window-settings1-2.17.90-2mdv2007.1
gnome-control-center-2.17.90-2mdv2007.1
deskbar-applet-2.17.90-1mdv2007.1
evolution-sharp-0.12.2-1mdv2007.1
gnome-utils-2.17.91-1mdv2007.1
ocaml-lablgtk2-2.6.0-9mdv2007.1
evolution-data-server-1.9.6.1-3mdv2007.1
libedata-cal6-1.9.6.1-3mdv2007.1
libedata-book2-1.9.6.1-3mdv2007.1
libecal7-1.9.6.1-3mdv2007.1
libebook9-1.9.6.1-3mdv2007.1
libedataserverui8-1.9.6.1-3mdv2007.1
libexchange-storage3-1.9.6.1-3mdv2007.1
sound-juicer-2.16.3-1mdv2007.1
xchat-gnome-0.16-1mdv2007.1
yelp-2.16.2-5mdv2007.1
gimp-2.3.14-1mdv2007.1
gnome-python-applet-2.17.3-2mdv2007.1
libmozilla-firefox2.0.0.1-2.0.0.1-6mdv2007.1
totem-2.17.90-3mdv2007.1
totem-gstreamer-2.17.90-3mdv2007.1
totem-mozilla-gstreamer-2.17.90-3mdv2007.1
Comment 16 Duncan 2007-05-19 05:11:42 UTC
FWIW, KDE starts pan just fine as part of its session, as it can any other X app (or even non-X app for that matter), so it can be done, and can be done without adding all those extra GNOME dependencies many pan users won't otherwise require on their system.  If GNOME can't do it, it would therefore seem to be a GNOME problem, not a pan problem, and IMO this bug should be reassigned accordingly.

If GNOME dependencies are added, please keep them optional.

Duncan