arg, the code I've found was good, I've even tried before the same one you sent, but I don't know why, bugs just loves me, the test file I've been trying has a "-" (a minus) in name, and doesn't follow mime settings, I've just figured it out after copying pasting twice and verifying code etc... and it fact it was working from the beginning with other files...
yuck
Le mardi 23 septembre 2008 à 18:26 +0200, cyrille henry a écrit :
oups, sorry. here it is.
cyrille
patco a écrit :
hi, thank you for those informations, I had to build manually pd-extended.xml by analysing the other xml files, here is the result:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/pd-extended"> <sub-class-of type="text/plain"/> <comment>PureData patch file</comment> <glob pattern="*.pd"/> <magic priority="99"> <match value="#N canvas " type="string" offset="0"/> </magic> </mime-type> </mime-info>
after updating mime, gnome don't reconize any application to open .pd files with anymore, I guess I've donne something wrong, but it's not easy to figure this out,
please could you provide or tell where it's possible to find mime_pd-extended.xml file?
Le mardi 23 septembre 2008 à 13:05 +0200, cyrille henry a écrit :
yes, this is normal, since .pd file does not have a mime time, so gnome see it as a text file. here is what need to be done in order to make it work as expected (on ubuntu):
# add mime type to .pd files cp mime_pd-extended.xml /usr/share/mime/packages/pd-extended.xml update-mime-database /usr/share/mime # add icon to this mime type # works curently only on gnome, is it possible to find a better way to do this? cp /usr/share/icons/hicolor/48x48/apps/pd.png /usr/share/icons/gnome/48x48/mimetypes/gnome-mime-application-pd-extended.png chmod 644 /usr/share/icons/gnome/48x48/mimetypes/gnome-mime-application-pd-extended.png gtk-update-icon-cache /usr/share/icons/gnome/ # adding pd by default on clicking on this files echo "application/pd-extended=pd-extended.desktop" >> /usr/share/applications/defaults.list
cyrille
patco a écrit :
Hi, something weird is happening if I want to open pd patches with double clic, it opens the patch with gedit
any good gnome user would tell me to right clic on the patch icon and select open with pd
and it works
but after I do this setting, .txt files are opened with pd!??
so I do right clic on txt file, open with gedit
and it works
but after I do this setting, .pd files are opened with gedit
and so on
do someone has the same behavior?
This is happening on ubuntu hardy i386 and pd-extended
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list