The MIME-Editor will try to make Puppy compatible with all those external filemanagers, that support the freedesktop.org specifications.
For Rox-Filer, please create a new thread.
It works completely different.
This thread shall deal only deal with MIME-Types following the freedesktop.org specifications to avoid confusion.
The editor analyzes and modifies .desktop files in
/usr/share/applications
and
~/.local/share/applications
And in their subfolders.
The .desktop-files contain information, about what program shall be used to open a specific "MIME-Type".
Imagine like in Windows:
you click on "test.doc", and Word opens it.
But MIME-Types are more complex.
In Linux, a file is not recognized (directly) by the extension (.doc), but by a set of rules.
This allows to associate it with more than one program.
If you use the filemanager PCManFM, you can right-click a .doc, then it offers to open it with OpenOffice, Kword, Abiword or others.
You can get PCManFM here:
http://murga-linux.com/puppy/viewtopic.php?t=25699
This flexibility makes it also difficult, to handle these associations.
My program tries to make it a bit easier by a grafical interface.
NOTE: this actually does NOT affect Rox-filer, Puppys default filemanager.
It has an own system to manage Mime-types.
I included a converter, that reads Puppys Rox-MIME-Types and converts them to the way of using Desktop-files.
So you can manage everything for programs that use this way of organizing file-assosiations.
NOTE2:
I'm no expert in this.
Maybe my program does things wrong, not following recommended specifications.
I will learn and try to enhance it in that direction, but for this release PLEASE BACKUP YOUR pup_save.2fs FIRST!
Download:
see attachment at bottom of this message.
Requires GtkBasic:
http://dotpups.de/puppy3/dotpups/Progra ... ic-003.pup
Mirror:
http://puppyfiles.ca/dotpupsde/puppy3/d ... ic-003.pup
Screenshot:
Full size:
http://noforum.de/pics/MIME-Editor.jpg
Mark
MIME-Editor Alpha
MIME-Editor Alpha
- Attachments
-
- MIME-Editor.pup
- (25.22 KiB) Downloaded 999 times
Last edited by MU on Mon 11 Feb 2008, 07:40, edited 4 times in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
- Dingo
- Posts: 1437
- Joined: Tue 11 Dec 2007, 17:48
- Location: somewhere at the end of rainbow...
- Contact:
two newbie questions (excuse me)
fist= I need Pcmanfm or not to use this mime editor?
second= with this editor, assuming i want create a new extensions for files containing using how-to (i wolud create a .use extension), can I do this?)
fist= I need Pcmanfm or not to use this mime editor?
second= with this editor, assuming i want create a new extensions for files containing using how-to (i wolud create a .use extension), can I do this?)
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux
dropbox 2GB free
OpenOffice for Puppy Linux
- ttuuxxx
- Posts: 11171
- Joined: Sat 05 May 2007, 10:00
- Location: Ontario Canada,Sydney Australia
- Contact:
Hey Mu
I figured why not give it a shot on puppy 2.17 since i'm running it live anyways, couldn't hurt.
this is what i got
# MIME-Editor
/usr/local/MIME-Editor/MIME-Editor: line 15: export: `/tmp/en-MIME-Editor.mo': not a valid identifier
/usr/local/MIME-Editor/MIME-Editor: ./MIME-Editor.gtb: /usr/bin/gtkbasic003: bad interpreter: No such file or directory
so it didn't work,
well thanks anyways
ttuuxxx
I figured why not give it a shot on puppy 2.17 since i'm running it live anyways, couldn't hurt.
this is what i got
# MIME-Editor
/usr/local/MIME-Editor/MIME-Editor: line 15: export: `/tmp/en-MIME-Editor.mo': not a valid identifier
/usr/local/MIME-Editor/MIME-Editor: ./MIME-Editor.gtb: /usr/bin/gtkbasic003: bad interpreter: No such file or directory
so it didn't work,
well thanks anyways
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
That can be ignored.ttuuxxx wrote: # MIME-Editor
/usr/local/MIME-Editor/MIME-Editor: line 15: export: `/tmp/en-MIME-Editor.mo': not a valid identifier
Have you installed gtkbasic mentioned in the first message?ttuuxxx wrote: /usr/local/MIME-Editor/MIME-Editor: ./MIME-Editor.gtb: /usr/bin/gtkbasic003: bad interpreter: No such file or directory
so it didn't work,
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
first: No. But you need a filemanager, that can use these MIME-Types, as Rox-Filer will not use them!Dingo wrote: fist= I need Pcmanfm or not to use this mime editor?
second= with this editor, assuming i want create a new extensions for files containing using how-to (i wolud create a .use extension), can I do this?)
The MIME-Editor will try to make Puppy compatible with all those external filemanagers, that support the freedesktop.org specifications.
For Rox-Filer, please create a new thread.
It works completely different.
This thread shall deal only deal with MIME-Types following the freedesktop.org specifications to avoid confusion.
second: you cannot yet.
It currently just lets you assign an existing mime-type to any program.
To assign a new file-extension to a mime-type, you had to do it by hand.
NOTE. that will not work in Puppys Rox. See first answer.
But this would require to have "update-mime-database".
There is a dotpup, but attention: it could overwrite puppys existing database.
WARNING: backup pup_save.2fs first !!!
http://dotpups.de/dotpups/Libraries/Gtk ... o-0.18.pup
You also should install:
http://dotpups.de/dotpups/Libraries/Gtk ... s-0.11.pup
Now you can look at
/usr/share/mime/packages/
Create there a file: mymimetype.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="text/plain">
<glob pattern="*.ini"/>
<glob pattern="*.inf"/>
</mime-type>
<mime-type type="application/x-ms-dos-executable">
<glob pattern="*.com" />
</mime-type>
</mime-info>
update-mime-database /usr/share/mime
This will rebuild a new mime-database.
It now has will recognize, that "ini" and "inf" will be assigned to the mime-type "text/plain".
You could add definitions for other mime-types.
I want to test in detail, how this can be done without the full shared-mime-info dotpup.
If I found out how to reduce it, I would add it to the MIME-Editor with an optional simple to use dialog to add your own filetypes.
NOTE: like this you just can assign file-extensions to existing mime-types.
To create a completely new mime-type, I must analyse how that can be done.
I cannot tell you that yet.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
- john biles
- Posts: 1458
- Joined: Sun 17 Sep 2006, 14:05
- Location: Australia
- Contact:
Hello MU,
Thank you for creating this Application. I look forward to experimenting with it. If it works as it appears in the screenshot, It will make life alot easier for the average User who's not into experimenting with their system files etc to get something to work.
Thank you for creating this Application. I look forward to experimenting with it. If it works as it appears in the screenshot, It will make life alot easier for the average User who's not into experimenting with their system files etc to get something to work.
Legacy OS 2017 has been released.