Discussion:
[Thunar-dev] Thumbnails - Mime-types
david
2010-07-23 12:51:03 UTC
Permalink
I'm trying to create a thumbnailing script.
The target file is either an xml-file or a compressed xml-file and the
mime-types is the quite generic "text/plain" and "application/x-gzip"
Is there some way I can be more specific, like use the file extension
which is .sif or .sifz?

My script does not work at all right now and I'm pretty sure it has to
do with this issue here.

Thank you,
-David
Erlend Davidson
2010-07-23 13:00:06 UTC
Permalink
You need to add a mimetype for those file extensions.
Thunar-thumbnailers already does this for RAW digital camera files.

You create an XML file like this,

|<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-sif">
<comment>Autodesk file</comment>
<comment xml:lang="en">Autodesk file</comment>
<comment xml:lang="en-GB">Autodesk file</comment>
<glob pattern="*.sif"/>
</mime-type>
||</mime-info>

|

"text/x-sif" can basically be what you want. The "x" prefix just means
that it isn't a standard mimetype.

Once you have made this XML file you put it in
/usr/local/share/mime/thunar-thumbnailers/ and run the command

|update-mime-database /usr/local/share/mime/thunar-thumbnailers|/file.xml
Post by david
I'm trying to create a thumbnailing script.
The target file is either an xml-file or a compressed xml-file and the
mime-types is the quite generic "text/plain" and "application/x-gzip"
Is there some way I can be more specific, like use the file extension
which is .sif or .sifz?
My script does not work at all right now and I'm pretty sure it has to
do with this issue here.
Thank you,
-David
_______________________________________________
Thunar-dev mailing list
Thunar-dev at xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20100723/26135773/attachment.html>
Stefan Liebenberg
2010-07-30 18:51:50 UTC
Permalink
Hi Devs

I'm not sure if this is the place for feature requests or wish-lists...
but here goes. :)

Using shortcuts speeds up my day. It would be really cool if pressing
'ALT-d' would focus on the address bar. Similar to Firefox and other
web browsers.

Also, having a fullscreen viewing mode ( with shortcut F11 :) ) would
also be cool.

Thank you for taking the time to read this.
Stefan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20100730/ad8adabc/attachment.html>
Mathias Brodala
2010-07-30 18:51:09 UTC
Permalink
Hi.
Post by Stefan Liebenberg
Using shortcuts speeds up my day. It would be really cool if pressing
'ALT-d' would focus on the address bar. Similar to Firefox and other
web browsers.
Have you tried Ctrl+L?


Regards, Mathias
Stefan Liebenberg
2010-07-30 19:19:57 UTC
Permalink
Post by Mathias Brodala
Post by Stefan Liebenberg
Using shortcuts speeds up my day. It would be really cool if pressing
'ALT-d' would focus on the address bar. Similar to Firefox and other
web browsers.
Have you tried Ctrl+L?
I have not. And I see that it works. Thank you.

It would still be cool to have Alt-D work aswell, but its not as
important now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20100730/842a04f7/attachment.html>
Nick Schermer
2010-07-30 21:42:29 UTC
Permalink
Post by Stefan Liebenberg
I have not. And I see that it works. Thank you.
It would still be cool to have Alt-D work aswell, but its not as important
now.
ctrl+L is the default accelerator in the standard, but you can change
it in thunar.

- In the appearance settings of Xfce enable editable accelerators.
- Start a Thunar window and hover the "Open location..." item in the go menu.
- Press the new key combination (Alt+d in your case).

Nick
Stefan Liebenberg
2010-08-01 08:04:06 UTC
Permalink
Post by Nick Schermer
ctrl+L is the default accelerator in the standard, but you can change
it in thunar.
- In the appearance settings of Xfce enable editable accelerators.
- Start a Thunar window and hover the "Open location..." item in the go menu.
- Press the new key combination (Alt+d in your case).
Nick
_______________________________________________
Thunar-dev mailing list
Thunar-dev at xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev
Is there a way to do this without the xfce4-settings package?
I only have thunar and its dependencies installed.

Steve


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20100801/b24ee639/attachment.html>
Nick Schermer
2010-08-01 19:28:30 UTC
Permalink
Post by Nick Schermer
ctrl+L is the default accelerator in the standard, but you can change
it in thunar.
- In the appearance settings of Xfce enable editable accelerators.
- Start a Thunar window and hover the "Open location..." item in the go menu.
- Press the new key combination (Alt+d in your case).
Is there a way to do this without the xfce4-settings package?
I only have thunar and its dependencies installed.
No, but you could've read that in the thunar documentation too:
http://thunar.xfce.org/documentation/C/faq.html#faq-assign-keyboard-shortcuts

Nick

Loading...