[Kde-kiosk] KDE File Associations
Janyne Kizer
kde-kiosk@mail.kde.org
Mon, 25 Mar 2002 12:55:15 -0500
OK, this is what I did. The problem that I see is that it appears that
each user will have to run a StarOffice mini-installation and that will
overwrite my changes here and/or override any changes made to
$KDEDIR/share/mimelnk and $KDEDIR/share/applnk (if I am understanding
things correctly). Next thing is to avoid that whole mini-install
thing. Thanks again guys!
~/.kde/share/mimelnk/application/x-swriter.kdelnk
# KDE Config File
[KDE Desktop Entry]
MiniIcon=sdw.xpm
MimeType=application/x-swriter
Comment=StarOffice file
DefaultApp=StarOffice
Icon=sdw.xpm
Type=MimeType
Comment[de]=StarOffice Datei
Patterns=*.sdw;*.doc;
~/.kde/share/applnk/staroffice_52/StarOffice.kdelnk
[Desktop Entry]
BinaryPattern=soffice;
Comment=StarOffice 5.2
Exec=/opt/staroffice52/program/soffice %f
Icon=so52.xpm
MimeType=application/msword;application/x-scalc;application/x-smf;application/x-sdraw;application/x-sds;application/x-swriter;application/x-s$
Name=StarOffice
Path=$HOME
Protocols=file;ftp;http;
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=0
Type=Application
Annemieke den Teuling wrote:
>
> > On Monday 25 March 2002 13:45, Janyne Kizer wrote:
> > > I am using KDE 2.2.1 and I am having a problem associating .doc files
> > > with StarOffice 5.2. Where is this information stored? I think that I
> > > am missing a piece of the puzzle since the Mimelink stuff doesn't
> > > mention an application to execute in order to open the file. I guess
> > > that I should also have mentioned that using the file association t
> > > seems to work from some users but not others
> > >
> > > Basically, what file(s) need to be edited to associate files with
> > > programs so that, for example, .doc files will be opened by StarOffice
> > > automatically? Can this be set on at the system level or is this
> > > something that needs to be set for each individual? Thanks!
> >
> > I think you could just add 'MimeType=application/msword' to the
> .desktop file
> > of StarOffice. After that either log in again or run 'kbuildsycoca'
> from the
> > console to update the System Configuration Cache.
> >
> > But I'm sure Waldo knows much more about the mime type handling :-)
> >
> > Martijn
> >
> Indeed, for known applications it is enough to put it in the
> $kde/share/applink/*.desktop file.
> For unknown applications (for example open-office *.sdc or *.sxw,*.sxc,
> etc) you need to make an entry in mimelnk.
> Example:*/share/mimelnk/application/x-calc.desktop
>
> [Desktop Entry]
> Comment=OpenOffice Calc
> Hidden=false
> Icon=
> MimeType=application/x-calc
> Patterns=*.sxc;*.stc
> Type=MimeTypeool
>
> I hope this is usefull.
>
> Cheers,
> annemieke
> > _______________________________________________
> > kde-kiosk mailing list
> > kde-kiosk@mail.kde.org
> > http://mail.kde.org/mailman/listinfo/kde-kiosk
> >
> >
>
> ---------
> "UNIX was not designed to stop you from doing stupid things, because
> that would also stop you from doing clever things."
> -- Doug Gwyn
>
> _______________________________________________
> kde-kiosk mailing list
> kde-kiosk@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-kiosk
--
Janyne Kizer
CNE-3, CNE-4, CNE-5
Systems Programmer Administrator I
NC State University, College of Agriculture & Life Sciences
Extension and Administrative Technology Services
Phone: (919) 515-3609