Created attachment 608321
Stop using libgnome and libgnomeui on Linux

This is what I've got so far, although it's not ready for review just
yet. I haven't made any corresponding changes in configure.in or any
other part of the build system yet.

Any feedback is welcome on the approach.

This makes session manager integration work without embedding
eggsmclient, depending on the GNOME-specific dbus interface, adding any
other desktop-specific dependencies or depending on Gtk 3.4 (which has
session management in GtkApplication)

It should work outside of GNOME too, although I didn't try this yet.

I've not added a runtime dependency on libSM or libICE, as there wasn't
one before. There is a build-time dependency on these though, although
the headers for these are already installed on the build machines.

I made a couple of other changes to the behaviour too:
- It now only sends the "session-save" notification when the save style is 
SmSaveLocal or SmSaveBoth. Saving internal state with a save style of 
SmSaveGlobal is actually incorrect. This means that Firefox now distinguishes 
between a normal session exit and a session exit with session saving enabled.
- As "quit-application-requested" might pop up a dialog, it only does this if 
the interact style is not SmInteractStyleNone
- "quit-application-requested" is only sent after sending SmcInteractRequest 
and receiving an interact message. If we were using eggsmclient, this would 
actually happen transparently anyway (using the EggSMClient::quit_requested 
signal)

I have to say, libSM and libICE are probably the most horrible API's
I've ever had to work with :)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/867424

Title:
  Oneric: On boot up Firefox always displays the “Well, This Is
  Embarrassing” screen.

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/867424/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to