WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
16315
FindSafari Needs Path-Only Option
https://bugs.webkit.org/show_bug.cgi?id=16315
Summary
FindSafari Needs Path-Only Option
Brent Fulgham
Reported
2007-12-05 17:37:40 PST
I wrote a little script (see
Bug #16314
) to launch Drosera. Unfortunately, the "FindSafari.exe /printSafariLauncher" command outputs both the environment needed to run as well as the launch command for Safari. FindSafari would be more useful to something like the Drosera script if it could just output the environment commands (perhaps with a "/printSafariEnvironment" option) What I currently get from FindSafari is this: ==================================================== $ ./FindSafari.exe /printSafariLauncher @echo off mkdir 2>NUL "%TMP%\WebKitNightly\Safari.resources" xcopy /y /i /d "C:\Program Files\Safari\Safari.exe" "%TMP%\WebKitNightly" xcopy /y /i /d /e "C:\Program Files\Safari\Safari.resources" "%TMP%\WebKitNightl y\Safari.resources" set PATH="%CD%;C:\Program Files\Safari\;%PATH%" "%TMP%\WebKitNightly\Safari.exe" /customWebKit ==================================================== What I would *LIKE* is this: ==================================================== $ ./FindSafari.exe /printSafariLauncher @echo off mkdir 2>NUL "%TMP%\WebKitNightly\Safari.resources" xcopy /y /i /d "C:\Program Files\Safari\Safari.exe" "%TMP%\WebKitNightly" xcopy /y /i /d /e "C:\Program Files\Safari\Safari.resources" "%TMP%\WebKitNightl y\Safari.resources" set PATH="%CD%;C:\Program Files\Safari\;%PATH%" ====================================================
Attachments
Modification to FindSafari.exe to emit environment information only.
(1.94 KB, patch)
2007-12-06 14:16 PST
,
Brent Fulgham
aroben
: review-
Details
Formatted Diff
Diff
Updated patch based on initial review.
(1.94 KB, patch)
2007-12-13 13:04 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Updated based on review.
(2.22 KB, patch)
2007-12-13 15:17 PST
,
Brent Fulgham
aroben
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2007-12-06 14:16:56 PST
Created
attachment 17759
[details]
Modification to FindSafari.exe to emit environment information only. The attached patch modifies FindSafari to avoid issuing the command to launch Safari. This is useful to allow use of Drosera on the Windows platform (see
Bug #16314
).
Adam Roben (:aroben)
Comment 2
2007-12-12 22:31:18 PST
Comment on
attachment 17759
[details]
Modification to FindSafari.exe to emit environment information only. + if (!printEnvironment) + { Our code style guidelines say that the brace should be on the same line as the if. See <
http://webkit.org/coding/coding-style.html
>. It seems a little strange that if you pass both /printSafariLauncher and /printSafariEnvironment, you only get the environment and don't get a launcher at all. Perhaps /printSafariLauncher should override /printSafariEnvironment? r- so that the above can be considered.
Brent Fulgham
Comment 3
2007-12-13 13:04:28 PST
Created
attachment 17877
[details]
Updated patch based on initial review. Updated patch based on aroben's review comments.
Adam Roben (:aroben)
Comment 4
2007-12-13 14:50:07 PST
Comment on
attachment 17877
[details]
Updated patch based on initial review. Looks like you uploaded the same patch again by accident.
Brent Fulgham
Comment 5
2007-12-13 15:17:47 PST
Created
attachment 17883
[details]
Updated based on review.
Brent Fulgham
Comment 6
2007-12-13 15:19:13 PST
Comment on
attachment 17883
[details]
Updated based on review. This should be the correct patch.
Adam Roben (:aroben)
Comment 7
2007-12-13 15:55:07 PST
Comment on
attachment 17883
[details]
Updated based on review. + * ChangeLog: We normally don't list the ChangeLog in the list of changed files. r=me. Thanks for the patch!
Mark Rowe (bdash)
Comment 8
2007-12-16 17:33:26 PST
Landed in
r28788
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug