No subject
Sat Jul 10 00:05:04 CEST 2010
* We have included a scribus.xml file for updating the mime info
database. We are still missing some locales, but in our testing it
works properly. We are awaiting IANA approval for our mime type.
An example command to install and refresh the mime database in a spec
file (distro specfic macros might vary):
%install
install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},
%{_datadir}/mime/packages/}
install scribus.xml
$RPM_BUILD_ROOT%{_datadir}/mime/packages/scribus.xml
%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 ||:
The alternative is to install kde and konqueror and use it to set the
file associations. I do not think Gnome has a means of graphically
setting mime associations like KDE.
Peter
More information about the scribus
mailing list