MozillaZine

Where did our files go?

Discuss application theming and theme development.
KLB

User avatar
 
Posts: 2282
Joined: December 21st, 2003, 9:25 am
Location: Saco Maine

Post Posted March 26th, 2011, 12:11 pm

I'm using my old chrome.manifest file, I just copied the relevant omni.jar folders to the proper location for my manifest.
Ken Barbalace - AMO Editor (I focus on reviewing themes)
I maintain Classic Compact, a very compact yet clean Firefox theme.
EnvironmentalChemistry.com (Periodic Table)

ehume

User avatar
 
Posts: 6743
Joined: November 17th, 2002, 12:33 pm
Location: Princeton, NJ, USA

Post Posted March 26th, 2011, 12:15 pm

Thanks. That should help.
Firefox: Sic transit gloria mundi.

ehume

User avatar
 
Posts: 6743
Joined: November 17th, 2002, 12:33 pm
Location: Princeton, NJ, USA

Post Posted March 26th, 2011, 12:35 pm

So, after they made us abandon xpi files for jar files, we've now gone back to xpi files?

<Sigh> It's been so many years I've forgotten how do do those.
Firefox: Sic transit gloria mundi.

ShareBird

User avatar
 
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil

Post Posted March 26th, 2011, 12:42 pm

ehume wrote:Do they still have a chrome.manifest file?

Yes. Of course.
Inside the omni.jar there is a chrome.manifest file:
Code: Select all
manifest components/interfaces.manifest
manifest components/components.manifest
manifest chrome/nonlocalized.manifest
manifest chrome/localized.manifest


Inside the chrome folder (in omni.jar):
nonlocalized.manifest file:
Code: Select all
# browser.manifest
overlay chrome://browser/content/browser.xul         chrome://browser/content/safebrowsing/report-phishing-overlay.xul
overlay chrome://global/content/viewPartialSource.xul chrome://browser/content/viewSourceOverlay.xul
overlay chrome://browser/content/browser.xul chrome://browser/content/win6BrowserOverlay.xul os=WINNT osversion>=6
overlay chrome://global/content/viewSource.xul chrome://browser/content/viewSourceOverlay.xul
style chrome://global/content/customizeToolbar.xul chrome://browser/content/browser.css
override chrome://global/content/license.html chrome://browser/content/license.html
content branding browser/content/branding/ contentaccessible=yes
skin browser classic/1.0 browser/skin/classic/browser/ os!=WINNT
skin browser classic/1.0 browser/skin/classic/aero/browser/ os=WINNT osversion>=6
content browser browser/content/browser/ contentaccessible=yes
skin browser classic/1.0 browser/skin/classic/browser/ os=WINNT osversion<6
style chrome://global/content/customizeToolbar.xul chrome://browser/skin/
skin communicator classic/1.0 browser/skin/classic/communicator/

# pippki.manifest
content pippki pippki/content/pippki/

# toolkit.manifest
content mozapps toolkit/content/mozapps/
skin global classic/1.0 toolkit/skin/classic/global/ os=WINNT osversion<6
override chrome://global/content/nsTransferable.js chrome://global/content/nsDragAndDrop.js
content satchel toolkit/content/satchel/
content global-region toolkit/content/global-region/
content global toolkit/content/global/ contentaccessible=yes
content global-platform toolkit/content/global-platform/ platform
skin mozapps classic/1.0 toolkit/skin/classic/aero/mozapps/ os=WINNT osversion>=6
skin mozapps classic/1.0 toolkit/skin/classic/mozapps/ os!=WINNT
content passwordmgr toolkit/content/passwordmgr/
skin mozapps classic/1.0 toolkit/skin/classic/mozapps/ os=WINNT osversion<6
skin global classic/1.0 toolkit/skin/classic/aero/global/ os=WINNT osversion>=6
content xbl-marquee toolkit/content/xbl-marquee/
content cookie toolkit/content/cookie/
skin global classic/1.0 toolkit/skin/classic/global/ os!=WINNT
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.

ShareBird

User avatar
 
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil

Post Posted March 26th, 2011, 12:47 pm

ehume wrote:So, after they made us abandon xpi files for jar files, we've now gone back to xpi files?

<Sigh> It's been so many years I've forgotten how do do those.

Who said they made us abandon jar files? AFAIK it should be still working...
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.

ehume

User avatar
 
Posts: 6743
Joined: November 17th, 2002, 12:33 pm
Location: Princeton, NJ, USA

Post Posted March 26th, 2011, 1:06 pm

ShareBird wrote:
ehume wrote:So, after they made us abandon xpi files for jar files, we've now gone back to xpi files?

<Sigh> It's been so many years I've forgotten how do do those.

Who said they made us abandon jar files? AFAIK it should be still working...


I just took my old {blahblahblah} directory and converted it to a zipfile, then renamed it {blahblahblah}.xpi. My theme went from a non-working disabled extension to an extension I could enable. Now I can see it to work on it.

So far, the worst is the extensions window. Where is that now?
Firefox: Sic transit gloria mundi.

ehume

User avatar
 
Posts: 6743
Joined: November 17th, 2002, 12:33 pm
Location: Princeton, NJ, USA

Post Posted March 26th, 2011, 1:06 pm

Sorry for the double post.

Now I converted my xpi file back to a directory, and it works now. Squirrely.
Firefox: Sic transit gloria mundi.

ShareBird

User avatar
 
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil

Post Posted March 26th, 2011, 1:21 pm

Did you try to package your theme as jar like you've used to do?
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.

ehume

User avatar
 
Posts: 6743
Joined: November 17th, 2002, 12:33 pm
Location: Princeton, NJ, USA

Post Posted March 26th, 2011, 1:49 pm

ShareBird wrote:Did you try to package your theme as jar like you've used to do?


Yes. And that works. I guess I shouldn't complain. A non-jarred raw directory now works as well.

Now all I have to do is find out what file controls the Add-on tab. I've replaced my own file with the cssfile from the recent release. Makes no difference.

Oh well, it's not as bad as I thought it would be. Whatever change they made to the app tab fixed that problem.
Firefox: Sic transit gloria mundi.

KLB

User avatar
 
Posts: 2282
Joined: December 21st, 2003, 9:25 am
Location: Saco Maine

Post Posted March 26th, 2011, 2:00 pm

ehume wrote:So, after they made us abandon xpi files for jar files, we've now gone back to xpi files?

<Sigh> It's been so many years I've forgotten how do do those.

:?: Why do you think we have to use XPI files for themes?
I'm still using a jar file for my theme.
Ken Barbalace - AMO Editor (I focus on reviewing themes)
I maintain Classic Compact, a very compact yet clean Firefox theme.
EnvironmentalChemistry.com (Periodic Table)

ehume

User avatar
 
Posts: 6743
Joined: November 17th, 2002, 12:33 pm
Location: Princeton, NJ, USA

Post Posted March 26th, 2011, 3:20 pm

KLB wrote:
ehume wrote:So, after they made us abandon xpi files for jar files, we've now gone back to xpi files?

<Sigh> It's been so many years I've forgotten how do do those.

:?: Why do you think we have to use XPI files for themes?
I'm still using a jar file for my theme.


I think we don't. Firefox4 just choked on mine for a while.
Firefox: Sic transit gloria mundi.

CatThief

User avatar
 
Posts: 1854
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA

Post Posted March 26th, 2011, 6:39 pm

@ehume -- Firefox takes the jar and creates the {blah-blah}.xpi. Nothing on your end changes. Just pack everything into a single jar just like before. The structure will be a bit different since you no longer need the jar inside a jar, but that's all.

What is most helpful is if you set the pref "extensions.alwaysUnpack" to "true", then extension sub-directories will be created the same way they were before and you can just directly edit the existing files of the installed theme. By unpacking them the performance hit is ever so slight, yet it's worth it for such easy accessibility.
Still passionate for Mozilla themes and extensions, just not actively developing them for public release anymore.

ehume

User avatar
 
Posts: 6743
Joined: November 17th, 2002, 12:33 pm
Location: Princeton, NJ, USA

Post Posted March 26th, 2011, 6:45 pm

CatThief wrote:@ehume -- Firefox takes the jar and creates the {blah-blah}.xpi. Nothing on your end changes. Just pack everything into a single jar just like before. The structure will be a bit different since you no longer need the jar inside a jar, but that's all.

What is most helpful is if you set the pref "extensions.alwaysUnpack" to "true", then extension sub-directories will be created the same way they were before and you can just directly edit the existing files of the installed theme. By unpacking them the performance hit is ever so slight, yet it's worth it for such easy accessibility.


Wonderful trick. Thank you.
Firefox: Sic transit gloria mundi.

ShareBird

User avatar
 
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil

Post Posted March 26th, 2011, 7:11 pm

CatThief wrote:@ehume -- Firefox takes the jar and creates the {blah-blah}.xpi. Nothing on your end changes. Just pack everything into a single jar just like before. The structure will be a bit different since you no longer need the jar inside a jar, but that's all.

What is most helpful is if you set the pref "extensions.alwaysUnpack" to "true", then extension sub-directories will be created the same way they were before and you can just directly edit the existing files of the installed theme. By unpacking them the performance hit is ever so slight, yet it's worth it for such easy accessibility.

While this could be very interesting for you as developer, it will impact the performance at the user side... (I've just tested it on my computer. If I install my theme as compressed file, Firefox starts really fast, in opposite as the profiles where I use to work with uncompressed files)

I don't know how you guys and girls are setting your workflow up, but I use to develop my themes an uncompressed installation on my profile. In this way I can see the modifications quite at "real time" (using the reload chrome function from my extension Switch Themes).
when I release a version (dev or release) I just use a simple bat file to compress the whole theme as I wish.
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.

ehume

User avatar
 
Posts: 6743
Joined: November 17th, 2002, 12:33 pm
Location: Princeton, NJ, USA

Post Posted March 26th, 2011, 7:16 pm

" . . . from my extension Switch Themes"

And where might one get that? (he asks so sweetly . . .)
Firefox: Sic transit gloria mundi.

Return to Theme Development


Who is online

Users browsing this forum: No registered users and 2 guests