GNOME Bugzilla – Bug 351087
Port gnome-system-monitor to use the single-instance application library
Last modified: 2012-09-28 05:17:50 UTC
As a Google Summer of Code participant I am developing a library for GNOME single-instance applications, and it has reached the state when it can be tested with various applications. I have ported gnome-system-monitor and attach the patch below. One would also need to copy libguniqueapp code to the gnome-system-monitor directory, changing @GTK_CFLAGS@ to @PROCMAN_CFLAGS@ etc. I have produced a small tarball, which is ready to drop in for testing: http://guniqueapp.akl.lt/patches/libguniqueapp-0.4-for-g-s-m.tar.bz2
Created attachment 70792 [details] [review] gnome-system-monitor-2.15.90.diff
I'll test it but as long as guniqueapp is not desktop/platform i think i'll stay with bacon. Anyway, I may switch to guniqueapp for 2.18. Good job.
This should use GtkApplication now that that functionality is in gtk+.
*** Bug 646502 has been marked as a duplicate of this bug. ***
Gtk::Application class isn't included in gtkmm 3.0, the C++ version of GTK+, which the system monitor is written with, will hopefully be included in gtkmm 3.2, this will have to wait until then.
*** Bug 576455 has been marked as a duplicate of this bug. ***
Created attachment 224767 [details] [review] Port to GtkApplication
Review of attachment 224767 [details] [review]: Nice, it works as it should, libbacon removed, gtkapplication works, single-instance works correctly, command line options work. I will commit it as soon as the hard code freeze ends, that is, after 3.6.0 stable release after 26th of September.
Created attachment 224787 [details] [review] Make the main window a GtkApplicationWindow There is also this. Probabily to be squashed with the other patch.
Review of attachment 224787 [details] [review]: Looks fine, works as expected, will commit it after the hard code freeze ends.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Robert it seems that you forgot to actually commit the changes to: data/interface.ui src/interface.cpp src/interface.h and the whole src/procman-app.{cpp,h}
Thanks... my bad... now it should be OK.