[blfs-dev] Firefox/Thunderbird MimeType

2012-07-04 Thread DJ Lucas
We need to add the MimeType to the .desktop files for Firefox and 
Thunderbird. These are required to make them the default handlers in 
Gnome and KDE. I believe there are other ways in both, but I haven't 
looked in KDE, and haven't been able to figure it out in Gnome yet, but 
this is the way the spec wants it. I'm not sure about LXDE and XFCE...do 
they follow freedesktop.org standard? Also, the "--enable-calendar" 
switch is not included in the Thunderbird mozconfig that is in the book.

What I have for mime types is...

Firefox:
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;

Thunderbird:
MimeType=text/calendar;text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;x-scheme-handler/news;x-scheme-handler/snews;x-scheme-handler/nntp;x-scheme-handler/feed

-- DJ Lucas


-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] Firefox/Thunderbird MimeType

2012-07-05 Thread Andrew Benton
On Thu, 05 Jul 2012 07:15:20 +0100
DJ Lucas  wrote:

> We need to add the MimeType to the .desktop files for Firefox and 
> Thunderbird. These are required to make them the default handlers in 
> Gnome and KDE. I believe there are other ways in both, but I haven't 
> looked in KDE, and haven't been able to figure it out in Gnome yet, but 
> this is the way the spec wants it. I'm not sure about LXDE and XFCE...do 
> they follow freedesktop.org standard?

I don't know. With XFCE the firefox.desktop file that's in the book
shows up in the menu. If I click on a html file in Thunar a dialog pops
up that asks me to pick an application. If I add a MimeType line to the
firefox.desktop it makes no difference, it still doesn't suggest to use
Firefox, I still have to choose it from all the others. Once I've
chosen it I can make it the default so it's not something that needs to
be done every time. It only needs to be done once for each mime type.

> Also, the "--enable-calendar" 
> switch is not included in the Thunderbird mozconfig that is in the book.

I've never used this calendar but if it's useful to some people that's
fine. Maybe we could put the option in the mozconfig with a line that
says:

# If you want to compile the Mozilla Calendar, uncomment this line:
# ac_add_options --enable-calendar

> What I have for mime types is...
> 
> Firefox:
> MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
> 
> Thunderbird:
> MimeType=text/calendar;text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;x-scheme-handler/news;x-scheme-handler/snews;x-scheme-handler/nntp;x-scheme-handler/feed
> 

Fair enough. Those line make no difference that I'm aware of to LXPanel
or to XFCE but I don't think it'll do any harm and if it helps someone
then it should go in the book.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] Firefox/Thunderbird MimeType

2012-07-07 Thread DJ Lucas
On 07/05/2012 07:11 AM, Andrew Benton wrote:
> On Thu, 05 Jul 2012 07:15:20 +0100
> DJ Lucas  wrote:
>
>> We need to add the MimeType to the .desktop files for Firefox and
>> Thunderbird. These are required to make them the default handlers in
>> Gnome and KDE. I believe there are other ways in both, but I haven't
>> looked in KDE, and haven't been able to figure it out in Gnome yet, but
>> this is the way the spec wants it. I'm not sure about LXDE and XFCE...do
>> they follow freedesktop.org standard?
> I don't know. With XFCE the firefox.desktop file that's in the book
> shows up in the menu. If I click on a html file in Thunar a dialog pops
> up that asks me to pick an application. If I add a MimeType line to the
> firefox.desktop it makes no difference, it still doesn't suggest to use
> Firefox, I still have to choose it from all the others. Once I've
> chosen it I can make it the default so it's not something that needs to
> be done every time. It only needs to be done once for each mime type.
>
>> Also, the "--enable-calendar"
>> switch is not included in the Thunderbird mozconfig that is in the book.
> I've never used this calendar but if it's useful to some people that's
> fine. Maybe we could put the option in the mozconfig with a line that
> says:
>
> # If you want to compile the Mozilla Calendar, uncomment this line:
> # ac_add_options --enable-calendar
>
There is actually more to it than that. I didn't notice it missing until 
after I built it and didn't have a calendar sidebar. I just installed 
the binary lightening plugin for now. Will revisit all of my previous 
comments/commitments as soon as I have a fully functional system again.

>> What I have for mime types is...
>>
>> Firefox:
>> MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
>>
>> Thunderbird:
>> MimeType=text/calendar;text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;x-scheme-handler/news;x-scheme-handler/snews;x-scheme-handler/nntp;x-scheme-handler/feed
>>
> Fair enough. Those line make no difference that I'm aware of to LXPanel
> or to XFCE but I don't think it'll do any harm and if it helps someone
> then it should go in the book.
I'm worried about the long lines in the book. What do you think of 
putting only the mime types in by default? Defaults would be:

Firefox:
MimeType=text/html;text/xml;application/xhtml+xml;

Thunderbird:
MimeType=text/x-vcard;text/directory;application/mbox;message/rfc822


And then providing a list in the book with the available additional 
types (only "text/calendar" is added  for thunderbird) and handlers (all 
above) and instructions to modify as appropriate for the system it is 
going on? Again, I'll be happy to take care of it in a couple of days.

-- DJ Lucas


-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] Firefox/Thunderbird MimeType

2012-07-07 Thread Bruce Dubbs
DJ Lucas wrote:

>>> What I have for mime types is...
>>>
>>> Firefox:
>>> MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;
x-scheme-handler/https;
>>>
>>> Thunderbird:
>>> MimeType=text/calendar;text/x-vcard;text/directory;application/mbox;
message/rfc822;x-scheme-handler/mailto;x-scheme-handler/news;
x-scheme-handler/snews;x-scheme-handler/nntp;x-scheme-handler/feed

> I'm worried about the long lines in the book. What do you think of
> putting only the mime types in by default? Defaults would be:
>
> Firefox:
> MimeType=text/html;text/xml;application/xhtml+xml;
>
> Thunderbird:
> MimeType=text/x-vcard;text/directory;application/mbox;message/rfc822

Sometimes long lines are a problem.  I've noticed that the new Seamonkey 
breaks lines at dashes for me, but I'm sure some browsers don't.  I'm no 
longer concerned about a pdf version of BLFS.  We haven't created a 
version in years and I don't recall anyone saying
they'd like one.

For MimeType we could just break it manually and add a note saying the 
line breaks should not be present.  Alternatively, if we are going to 
use echo, we could do something like:

m1=text/calendar;text/x-vcard;text/directory;
m2=application/mbox;message/rfc822;x-scheme-handler/mailto;
m3=x-scheme-handler/news;x-scheme-handler/snews;
m4=x-scheme-handler/nntp;x-scheme-handler/feed

echo "MimeType=$m1$m2$m3$m4" > some-file

We might even get clever and write something like:

m5=`echo x-scheme-handler/{mailto,news,snews,nntp,feed}|sed '/ /;/g'`
m6=`echo text/{calendar,x-vcard,directory} |sed '/ /;/g'`
echo "MimeType=$m6;application/mbox;message/rfc822;$m5" > some-file

:) :)

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] Firefox/Thunderbird MimeType

2012-07-07 Thread DJ Lucas
On 07/07/2012 11:23 AM, Bruce Dubbs wrote:
> DJ Lucas wrote:
>
 What I have for mime types is...

 Firefox:
 MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;
> x-scheme-handler/https;
 Thunderbird:
 MimeType=text/calendar;text/x-vcard;text/directory;application/mbox;
> message/rfc822;x-scheme-handler/mailto;x-scheme-handler/news;
> x-scheme-handler/snews;x-scheme-handler/nntp;x-scheme-handler/feed
>
>> I'm worried about the long lines in the book. What do you think of
>> putting only the mime types in by default? Defaults would be:
>>
>> Firefox:
>> MimeType=text/html;text/xml;application/xhtml+xml;
>>
>> Thunderbird:
>> MimeType=text/x-vcard;text/directory;application/mbox;message/rfc822
> Sometimes long lines are a problem.  I've noticed that the new Seamonkey
> breaks lines at dashes for me, but I'm sure some browsers don't.  I'm no
> longer concerned about a pdf version of BLFS.  We haven't created a
> version in years and I don't recall anyone saying
> they'd like one.
I've seen some conversation about an epub version, but my real concern 
regarding Firefox (and long lines in general) is that i imagine quite a 
few people are still using links or lynx at that point. One of them puts 
spaces at the beginning of the new line. I actually forgot about 
SeaMonkey as I don't use it, but it too is affected and should have the 
same MimeType lines combined and added, and of course, the length is 
probably even more important there regarding links/lynx. I'm not sure of 
the additional mime-types for the irc client. Does SeaMonkey include 
.desktop file(s) by default?
>
> For MimeType we could just break it manually and add a note saying the
> line breaks should not be present.  Alternatively, if we are going to
> use echo, we could do something like:
>
> m1=text/calendar;text/x-vcard;text/directory;
> m2=application/mbox;message/rfc822;x-scheme-handler/mailto;
> m3=x-scheme-handler/news;x-scheme-handler/snews;
> m4=x-scheme-handler/nntp;x-scheme-handler/feed
>
> echo "MimeType=$m1$m2$m3$m4" > some-file
>
> We might even get clever and write something like:
>
> m5=`echo x-scheme-handler/{mailto,news,snews,nntp,feed}|sed '/ /;/g'`
> m6=`echo text/{calendar,x-vcard,directory} |sed '/ /;/g'`
> echo "MimeType=$m6;application/mbox;message/rfc822;$m5" > some-file
>
> :) :)

Yes, that works well for all. Sounds good.

-- DJ Lucas


-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page