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 654527 - gnome-shell-jhbuild.in: Fix launch_component
gnome-shell-jhbuild.in: Fix launch_component
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-07-13 05:47 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2011-07-13 17:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-shell-jhbuild.in: Fix launch_component (1.42 KB, patch)
2011-07-13 05:47 UTC, Jasper St. Pierre (not reading bugmail)
reviewed Details | Review
gnome-shell-jhbuild.in: Fix restore_gnome. (1.31 KB, patch)
2011-07-13 17:28 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-07-13 05:47:25 UTC
Those gconf keys have been dead for a long while now.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-07-13 05:47:27 UTC
Created attachment 191860 [details] [review]
gnome-shell-jhbuild.in: Fix launch_component

Those gconf keys have been gone for a long while now. To replace the "smart"
code that was there before would be to extract the proper keyfile and parse
it, so just be stupid and launch the system gnome-shell.
Comment 2 Colin Walters 2011-07-13 16:17:19 UTC
Review of attachment 191860 [details] [review]:

If we care about replacing GNOME 2.28 still (do we?) then this will break it. 

If you want to make this still work, you'd have to test whether or not the gconf keys exist.  If you don't, the commit message should say we don't care anymore.

Rather than removing launch_component though, I'd just subprocess.Popen(['gnome-shell'])
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-07-13 17:28:22 UTC
Created attachment 191899 [details] [review]
gnome-shell-jhbuild.in: Fix restore_gnome.

The gconf keys used to restore GNOME aren't in a proper GNOME3 environment.
To mimic what GNOME3 gnome-session does would be extremely complicated, so
just launch the system gnome-shell.
Comment 4 Colin Walters 2011-07-13 17:33:49 UTC
Review of attachment 191899 [details] [review]:

One minor issue, otherwise looks OK I guess.

::: src/gnome-shell-jhbuild.in
@@ +551,3 @@
             appinfo.launch()
+            return True
+        return False

We're still returning None if the gconf key doesn't exist.  I'd fix it to return False too.
Comment 5 Jasper St. Pierre (not reading bugmail) 2011-07-13 17:35:58 UTC
Attachment 191899 [details] pushed as 297eab7 - gnome-shell-jhbuild.in: Fix restore_gnome.


Pushed with suggested fix. Thanks!