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 671090 - Remove historical stuff from the jhbuild wrapper script
Remove historical stuff from the jhbuild wrapper script
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-02-29 22:03 UTC by Giovanni Campagna
Modified: 2012-04-24 19:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
jhbuild wrapper: drop a lot of historical stuff (7.65 KB, patch)
2012-02-29 22:04 UTC, Giovanni Campagna
none Details | Review
jhbuild wrapper: drop a lot of historical stuff (30.89 KB, patch)
2012-03-25 14:36 UTC, Giovanni Campagna
reviewed Details | Review
jhbuild wrapper: drop a lot of historical stuff (30.87 KB, patch)
2012-03-25 15:12 UTC, Giovanni Campagna
needs-work Details | Review

Description Giovanni Campagna 2012-02-29 22:03:58 UTC
See the patch for details. Not strictly necessary, but it should improve common workflow. Also, it fixes some subtle bugs caused by duplicate XDG_DATA_DIRS.
Comment 1 Giovanni Campagna 2012-02-29 22:04:33 UTC
Created attachment 208726 [details] [review]
jhbuild wrapper: drop a lot of historical stuff

- dconf exists on the bus since 2.32, no need to run it from the
  launcher script.
- notification-daemon is part of the fallback session (which kind
  of doesn't exist anymore, now that gnome-shell runs on software
  rendering), so it's unlikely to be around.
- Since we moved to the main jhbuild moduleset, it is expected
  people will use jhbuild shell or jhbuild run to run the shell,
  so a lot of environment variables are useless or actively harmful
  (like XDG_*_DIRS containing the jhbuild prefix twice)
- Similarly, since gnome-shell is now in PATH, trying to "restore GNOME"
  after a crash is just waiting for the same crash (especially for stuff
  like syntax errors). Also, it detaches the process from the terminal,
  which is quite bad.
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-03-18 01:20:02 UTC
Review of attachment 208726 [details] [review]:

Could we take the perf stuff and put that in a separate script, similar to how we split out gnome-shell-extension-tool?
Comment 3 Giovanni Campagna 2012-03-25 14:36:55 UTC
Created attachment 210575 [details] [review]
jhbuild wrapper: drop a lot of historical stuff

- dconf exists on the bus since 2.32, no need to run it from the
  launcher script.
- notification-daemon is part of the fallback session (which kind
  of doesn't exist anymore, now that gnome-shell runs on software
  rendering), so it's unlikely to be around.
- Since we moved to the main jhbuild moduleset, it is expected
  people will use jhbuild shell or jhbuild run to run the shell,
  so a lot of environment variables are useless or actively harmful
  (like XDG_*_DIRS containing the jhbuild prefix twice)
- Similarly, since gnome-shell is now in PATH, trying to "restore GNOME"
  after a crash is just waiting for the same crash (especially for stuff
  like syntax errors). Also, it detaches the process from the terminal,
  which is quite bad.
- Finally, all performance stuff has been moved to a separate
  script and ported to newer pygobject + gdbus.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-03-25 15:07:04 UTC
Review of attachment 210575 [details] [review]:

::: src/gnome-shell-jhbuild.in
@@ +177,3 @@
     options.debug_command = "gdb --args"
 
+sys.exit(0 if run_shell() else 1)

Ew. Keep it the way it was.

::: src/gnome-shell-perf-tool.in
@@ +78,3 @@
+    self_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
+    args.append(os.path.join(self_dir, 'gnome-shell'))
+    # pass on any additional argument

arguments.

@@ +94,3 @@
+
+def upload_performance_report(report_text):
+    # Local imports to avoid impacting gnome-shell startup time

What local imports?
Comment 5 Giovanni Campagna 2012-03-25 15:12:04 UTC
Created attachment 210581 [details] [review]
jhbuild wrapper: drop a lot of historical stuff

- dconf exists on the bus since 2.32, no need to run it from the
  launcher script.
- notification-daemon is part of the fallback session (which kind
  of doesn't exist anymore, now that gnome-shell runs on software
  rendering), so it's unlikely to be around.
- Since we moved to the main jhbuild moduleset, it is expected
  people will use jhbuild shell or jhbuild run to run the shell,
  so a lot of environment variables are useless or actively harmful
  (like XDG_*_DIRS containing the jhbuild prefix twice)
- Similarly, since gnome-shell is now in PATH, trying to "restore GNOME"
  after a crash is just waiting for the same crash (especially for stuff
  like syntax errors). Also, it detaches the process from the terminal,
  which is quite bad.
- Finally, all performance stuff has been moved to a separate
  script and ported to newer pygobject + gdbus.
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-03-29 17:47:02 UTC
Review of attachment 210581 [details] [review]:

OK -- while I might be fine with stuffing this into the Shell as one patch, I'd really prefer if it was split up into multiple commits. Each item in the commit message should be one patch, along with a generic "cleanup" patch that removes unused imports and other stuff like that. With a bunch of patches rather than just one, we can probably land some of this in 3.4.1 much easier.
Comment 7 Giovanni Campagna 2012-04-12 18:01:03 UTC
Ok, I splitted it into multiple commits.
I guess it will be easier to review as a branch, than as bugzilla patches, so you can find it at https://github.com/gcampax/gnome-shell/tree/jhbuild-wrapper
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-04-24 18:42:17 UTC
(In reply to comment #7)
> Ok, I splitted it into multiple commits.
> I guess it will be easier to review as a branch, than as bugzilla patches, so
> you can find it at https://github.com/gcampax/gnome-shell/tree/jhbuild-wrapper

It all looks fine to me. ACN as far as I'm concerned.
Comment 9 Giovanni Campagna 2012-04-24 19:21:52 UTC
Thanks, committed to master.