[Lazarus] Howto register MIME-Types for Lazarus IDE ?

John Landmesser jmlandmesser at gmx.de
Wed Feb 7 14:21:46 CET 2024


What i tried so far in vain:

Info_ running Linux Mint newest Version (21.3) and lazarus trunk:

Lazarus 3.99 (rev main_3_99-1378-gde6b521614) FPC 3.2.2 x86_64-linux-gtk2

Fresh install of lazarus trunk and then:

sudo make install

with this result:

> john1 at Mint:~/lazarus$ sudo make install
> [sudo] Passwort für john1:
> /usr/bin/install -m 755 -d /usr/local/share
> /usr/bin/install -m 755 -d /usr/local/share/lazarus
> /usr/bin/install -m 755 -d /usr/local/share/applications
> /usr/bin/install -m 755 -d /usr/local/share/pixmaps
> /usr/bin/install -m 755 -d /usr/local/share/mime/packages
> /usr/bin/install -m 755 -d /usr/local/share/icons/hicolor/48x48/mimetypes
> /usr/bin/install -m 755 -d /usr/local/bin
> /usr/bin/install -m 755 -d /usr/local/share/man
> /usr/bin/install -m 755 -d /usr/local/share/man/man1
> /usr/bin/cp -Rfp packager debugger designer converter ide images
> languages lazarus.app units /usr/local/share/lazarus
> /usr/bin/cp -Rfp components docs doceditor examples lcl test tools
> /usr/local/share/lazarus
> /usr/bin/cp -Rfp Makefile* *.txt /usr/local/share/lazarus
> /usr/bin/install -c -m 755 lazarus startlazarus lazbuild
> /usr/local/share/lazarus
> ln -sf ../share/lazarus/lazarus /usr/local/bin/lazarus-ide
> ln -sf ../share/lazarus/startlazarus /usr/local/bin/startlazarus
> ln -sf ../share/lazarus/lazbuild /usr/local/bin/lazbuild
> ln -sf ../share/lazarus/tools/lazres /usr/local/bin/lazres
> ln -sf ../share/lazarus/tools/lrstolfm /usr/local/bin/lrstolfm
> ln -sf ../share/lazarus/tools/updatepofiles /usr/local/bin/updatepofiles
> make -C install/man install PREFIX=/usr/local GINSTALL=/usr/bin/install
> make[1]: Verzeichnis „/home/john1/lazarus/install/man“ wird betreten
> cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
> cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
> cat man1/lazres.1 | gzip > man1/lazres.1.gz
> cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
> cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
> cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
> cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
> /usr/bin/install -m 644 man1/lazarus-ide.1.gz man1/lazbuild.1.gz
> man1/lazres.1.gz man1/lrstolfm.1.gz man1/startlazarus.1.gz
> man1/svn2revisioninc.1.gz man1/updatepofiles.1.gz
> /usr/local/share/man/man1
> rm -f man1/lazarus-ide.1.gz man1/lazbuild.1.gz man1/lazres.1.gz
> man1/lrstolfm.1.gz man1/startlazarus.1.gz man1/svn2revisioninc.1.gz
> man1/updatepofiles.1.gz
> make[1]: Verzeichnis „/home/john1/lazarus/install/man“ wird verlassen
> /usr/bin/install -c -m 644 install/lazarus.desktop
> /usr/local/share/applications/lazarus.desktop
> /usr/bin/install -c -m 644 images/icons/lazarus128x128.png
> /usr/local/share/pixmaps/lazarus.png
> /usr/bin/install -c -m 644 install/lazarus-mime.xml
> /usr/local/share/mime/packages/lazarus.xml
> /usr/bin/install -c -m 644 images/mimetypes/*.png
> /usr/local/share/icons/hicolor/48x48/mimetypes/
> /usr/bin/install -m 755 -d
> /usr/local/share/lazarus/units/x86_64-linux/nogui
> /usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/gtk
> /usr/bin/install -m 755 -d
> /usr/local/share/lazarus/units/x86_64-linux/gtk2
> /usr/bin/install -m 755 -d
> /usr/local/share/lazarus/units/x86_64-linux/gtk3
> /usr/bin/install -m 755 -d
> /usr/local/share/lazarus/units/x86_64-linux/gtk4
> /usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/qt
> /usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/qt5
> /usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/qt6
> /usr/bin/install -m 755 -d
> /usr/local/share/lazarus/components/synedit/design/languages

For my understanding that looks ok but filemanager nemo shows :

https://imgur.com/i4ifNkT.png

As you can see in column MIme-Type there is the information that i would
expect for columns File-Type!

I have also Lazarus trunk install on my Manjaro linux and there
everything is ok with mime-types.

Which step is missing to correct this  issue?

I tried also a Lazarus install from Mint repository ... no success!

Tipps are welcome ...

John Landmesser





More information about the lazarus mailing list