Closed
Bug 116375
Opened 24 years ago
Closed 23 years ago
unix needs option to customize splash screen
Categories
(SeaMonkey :: UI Design, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
Future
People
(Reporter: protomank, Assigned: bryner)
Details
(Keywords: qawanted)
Attachments
(1 file, 3 obsolete files)
|
1.54 KB,
patch
|
jag+mozilla
:
superreview+
asa
:
approval1.3b-
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.6) Gecko/20011121
BuildID:
In new builds splash is working on unix, but It's not possible to user use a
customized splash screen.
Mozilla should look for a splash.xpm (or .png) on it's directory and use it
instead of the default splash screen that is hidden somewhere (can someone tell
me where is it? I want to change it while this bug isn't fixed).
Reproducible: Always
Steps to Reproduce:
1.open mozilla with -splash
2.
3.
Actual Results: the red splash with a green dragon spiting fire and a mozilla
name burning
Expected Results: the splash.xpm placed on mozilla directory should be shown
Comment 1•24 years ago
|
||
a file "mozilla.bmp" in mozilla´s directory works on windows.
(bug 29775)
-> XP APPS
Assignee: sgehani → pchen
Status: UNCONFIRMED → NEW
Component: Preferences → XP Apps
Ever confirmed: true
| Reporter | ||
Comment 2•24 years ago
|
||
Yes, we need the same bahavior on unix.
But using a xpm or png instead of bmp :)
Comment 3•24 years ago
|
||
I would think that multiple formats should be allowed, and they should all work
on all platforms. No reason a bmp file can't work on UNIX or Mac OS.
Comment 4•24 years ago
|
||
Bug 27446 had a patch that would look for a mozilla.xpm but it was removed for a
speed increase inloading the splash. Should be trivial to add that part of the
code, but if no mozilla.xmp is found, the default which is built in gets used.
Comment 5•24 years ago
|
||
Another advantage: A comon hack for users to disable splash-screens is to just
remove them. They expect that the splash screen is not shown then, but
everything works as usual otherwise.
I just realized; I hardcoded the filename as mozilla.xpm which, although it
would work, would be a bit silly on NS.
Win and OS/2 find <appname> and append .BMP rather than hardcoding it but in the
patch referred to in comment 4 it was hardcoded, albeit as the more neutral
splash.xpm.
Which is better, hardcoding it (as splash.xpm) or getting <appname> like Win and
OS/2?
Comment 10•23 years ago
|
||
I vote for splash.*. It is consistent across Mozilla distros, neutral and makes
the meaning clear.
Comment 11•23 years ago
|
||
Win and OS/2 use <appname>.BMP for /user/ splash screens, only the default
embedded image is called splash.*
Comment 12•23 years ago
|
||
BTW Ben, I agree that splash.* would be a better choice, even for user splash
screens, but I don't think we should change Win & OS/2 as we would have a lot
of new bugs filed. User splash screens are obviously very popular - there's 66
at deskmod.com alone.
Attachment #106574 -
Attachment is obsolete: true
Comment 13•23 years ago
|
||
Duh! Missed removing some code I'd accidentally pasted in.
Attachment #106587 -
Attachment is obsolete: true
Attachment #106599 -
Flags: review?
Comment 14•23 years ago
|
||
parish:
you should request review from somebody specific, else I don't think people will
react to the request...
Comment 15•23 years ago
|
||
Comment on attachment 106599 [details] [diff] [review]
Removed some rogue code
Thanks for the tip Kairo
Attachment #106599 -
Flags: review? → review?(bryner)
| Assignee | ||
Comment 16•23 years ago
|
||
Comment on attachment 106599 [details] [diff] [review]
Removed some rogue code
>@@ -69,10 +71,26 @@
> if (!splash_xpm[0])
> return NS_OK;
> #endif
>- /* create a pixmap based on xpm data */
>- GdkPixmap* pmap = gdk_pixmap_colormap_create_from_xpm_d(NULL,
>+
>+ nsCAutoString path(PR_GetEnv("MOZILLA_FIVE_HOME"));
>+
>+ if (path.Equals("")) {
Change this to path.IsEmpty(). r=bryner with that change.
Attachment #106599 -
Flags: review?(bryner) → review+
Attachment #112876 -
Flags: superreview?(jaggernaut)
Attachment #112876 -
Flags: approval1.3b?
Updated•23 years ago
|
Attachment #112876 -
Flags: approval1.3b?
Comment 18•23 years ago
|
||
Please request aproval after you got the reviews
Comment 19•23 years ago
|
||
Comment on attachment 112876 [details] [diff] [review]
path.Equals("") -> path.IsEmpty()
sr=jag
Attachment #112876 -
Flags: superreview?(jaggernaut) → superreview+
Attachment #112876 -
Flags: approval1.3b?
Comment on attachment 112876 [details] [diff] [review]
path.Equals("") -> path.IsEmpty()
>+ nsCAutoString path(PR_GetEnv("MOZILLA_FIVE_HOME"));
Shouldn't this use the directory service?
Also, what is the startup performance cost of this? This code only gets
executed if -splash is on the command line, right?
Comment 21•23 years ago
|
||
dbaron:
right.
AFAIK, this fix affects only startup with splash screen.
this is what i want. thanks for your hack parish.
| Assignee | ||
Comment 22•23 years ago
|
||
dbaron: this code is executed prior to XPCOM startup, so I don't think the
directory service is available.
Comment 23•23 years ago
|
||
Comment on attachment 112876 [details] [diff] [review]
path.Equals("") -> path.IsEmpty()
not needed for 1.3. please hold 'till we open for 1.4alpha.
Attachment #112876 -
Flags: approval1.3b? → approval1.3b-
Comment 24•23 years ago
|
||
why no one check in this to trunk?
Comment 25•23 years ago
|
||
KENZ:
because the one who made the patch didn't do it himself and has asked nobody
else to do it.
Comment 26•23 years ago
|
||
kairo: i see. and sorry for spam.
i said that because i thought anyone who can check in can do so, and i want this.
Comment 27•23 years ago
|
||
The reason that "the one who made the patch didn't do it himself" is because I
don't have commit privs and the reason I haven't asked anyone else to do it
(yet) is because it was denied approval for check-in (see comment 23) and,
AFAIK, such approval is still required - even though there appears to be a 1.4a
branch now.
Perhaps I don't understand the branching system properly and that it can now be
checked-in, in which case please can someone do this for me? Thanks.
Comment 28•23 years ago
|
||
parish:
the thing that claims to be some "1.4a" currently is the trunk, and you don't
need approval for trunk unless it's stated so on tinderbox.
I'll do the checkin for you tomorrow (europe time), as today I have to celebrate
carnival here ;-)
I'll try to apply the patch on my cvs tree now to see if that does apply and
build cleanly here. If anything breaks, I'll tell you...
Comment 29•23 years ago
|
||
Checking in xpfe/bootstrap/nsNativeAppSupportGtk.cpp;
/cvsroot/mozilla/xpfe/bootstrap/nsNativeAppSupportGtk.cpp,v <--
nsNativeAppSupportGtk.cpp
new revision: 1.12; previous revision: 1.11
done
I did the checkin for parish@ntlworld.com, FIXED.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•