MIME Types

From Alessandro's Wiki
Jump to: navigation, search

Path dove salvare i file mime.

.kde/share/mimelnk/ utente 
/usr/share/mimelnk/ globale

Parser delle estensioni:

/usr/share/mime/globs
application/x-flash-video:*.flv

file per i flash video:

flv.desktop
[Desktop Entry]
Comment=flv
Hidden=false
Icon=file-video-mpeg
MimeType=video/flv
Patterns=*.flv
Type=MimeType


Aggiungere o modificare:

per propagare manualmente i mime da services

cd /home;
for a in `ls`
do 
 echo $a
 [ -d /home/$a/.kde/share/mimelnk/video ] || mkdir -p /home/$a/.kde/share/mimelnk/video ;
 cp -au /var/www/html/conf/mime/* /home/$a/.kde/share/mimelnk/video;
 chown $a -R /home/$a;
done