On Fri, Aug 31, 2018 at 11:06:26PM +0300, Waleed Hamra via blfs-support wrote:
> Greetings guys;
>
> What are some common post install commands I should know about?
> For instance, I know that if a package installs a .desktop file, I should
> run "update-desktop-database" to update the cache. For some programs there's
> gtk-update-icon-cache, though I don't really know when I need to run that, I
> just run after every gtk package.
>
> I had some problems with akonadi earlier, and after some debugging, I
> noticed it outputting something about some mail mime types being invalid, so
> I ran update-mime-database, and that solved it.
>
> Anything else I should be aware about? I ask since everything is installed
> using a DESTDIR method, so if make install is expected to fix some of this
> stuff, it's not.
>
> Thanks a lot for any pointers.
>
> Waleed Hamra
The two examples you give do not need to be done frequently and are
nothing to do with using DESTDIR-style installs. In my
own scripts I build in an order which gives me a series of
more-usable desktops, in which I then run the next script.
For me, I only run gtk-update-icon-cache after a script which
includes gimp and some pdf viewers, and also if I build (sysv)
gnome, or gnumeric - and I run it at the end of those build, not
per-package.
For update-desktop-database my use is similar.
Both might be needed if adding packages for other desktop
environments, but again I think that runing before trying to use
them (or trying without, and then closing the app if it fails and
then running them) is the way to go.
More generally, for libraries ldconfig needs to be run. Most
packages run it, but a few do not. But for DESTDIR installs you
always need to run it after the real install.
For mime types, I occasionally get files opening by default in a
wrong application - particularly on downloads, but soemtimes texlive
has picked up an odd application for opening a PDF, e.g. when
running texdoc (I don't use file managers). In such case:
xdg-mime query filetype /path/to /filename.typ
and, depending on the results
xdg-mime query default [specify the filetype, e.g. application/pdf]
and
xdg-mime default [applicationname filetype]
Thanks for the question - I've now remembered what files were giving
me problems, some example sony ARW raw files defaulted to opening in
the gimp (if I didn't spot this and change to download) when I
clicked on the html download option. Unfortunately, the filetype is
shown as 'image/tiff' which normally I _do_ want to open in the
gimp.
ĸen
--
Also Spuke Zerothruster
(Finnegans Wake)
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page