[Scribus] mime type info
PLinnell
mrdocs
Tue Jun 28 16:17:29 CEST 2005
On Tuesday 28 June 2005 04:40, Kite Lau wrote:
> > The relevant info is in the packaging guidelines.
> >
> > This snipped comes from my rpm spec file:
> >
> > %install
> >
> > install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},
> > %{_datadir}/mime/packages/}
> > install scribus.xml
> > $RPM_BUILD_ROOT%{_datadir}/mime/packages/scribus.xml
> >
> > ** The lines above are wrapped in the mail client.
> >
> > %post
> > umask 022
> > [ ! -x /usr/bin/update-desktop-database ]
> >
> > || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
> >
> > [ ! -x /usr/bin/update-mime-database ]
> >
> > || /usr/bin/update-mime-database %{_datadir}/mime >/dev/null 2>&1
> > || ||:
> >
> > %postun
> > umask 022
> > [ ! -x /usr/bin/update-desktop-database ]
> >
> > || /usr/bin/update-desktop-database >/dev/null 2>&1
> >
> > [ ! -x /usr/bin/update-mime-database ]
> >
> > || /usr/bin/update-mime-database %{_datadir}/mime >/dev/null 2>&1
> > || ||:
> >
> > Hope that helps,
> > Peter
>
> Thanks for your hints. It helps. As I use slackware, I do not use
> rpm. I did manage to run the suggested post install scripts etc.
> manually and the system can now recognizes scribus files. However
> the icon for scribus files within nautilus file manager is missing.
> Maybe I should put any icon in some correct path?
>
Try:
mv %{_datadir}/pixmaps/scribusicon.png
mv scribus.desktop %{_prefix}/share/applnk/Office/"
Peter
More information about the scribus
mailing list