Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-01

Linux: howto define file *.lpi to be opened with lazarus?

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Landmesser

I'm on Linux-Mint Cinnamon and i want to associate *.lpi with lazarus Application:

*.lpi is of Filetype XML, but we need the fileExtension *.lpi here!!

found:

lazarus.desktop

copied:

 cp '/home/john1/lazarus/install/lazarus.desktop' /usr/share/applications/

and

lazarus-mime.xml

copied:

 cp '/home/john1/lazarus/install/lazarus-mime.xml' '/usr/share/mime/application/'

Content of these two files seems to define for what i'm looking for, but reboot wasn't enough.

What i'm missing to get the filetypes/extension-Database updated?

Tipps are welcome!!

Reply by email

Howard Page-Clark
to John Landmesser: I'm on Linux-Mint Cinnamon and i want to associate *.lpi with lazarus Application: *.lpi…
John Landmesser wrote 30 lines
I'm on Linux-Mint Cinnamon and i want to associate *.lpi with lazarus Application: *.lpi is of Filetype XML, but we need the fileExtension *.lpi here!! found: lazarus.desktop copied:  cp '/home/john1/lazarus/install/lazarus.desktop' /usr/share/applications/ and lazarus-mime.xml copied:  cp '/home/john1/lazarus/install/lazarus-mime.xml' '/usr/share/mime/application/' Content of these two files seems to define for what i'm looking for, but reboot wasn't enough. What i'm missing to get the filetypes/extension-Database updated? Tipps are welcome!!

Navigate to any .lpi file on your disk using the file browser (Nemo). Right click on that .lpi, and choose Properties. In the xxxx.lpi Properties dialog click on the third button at the top, Open With, and choose Lazarus from the list (if it is installed) or use the edit box at the bottom of the dialog to locate a Lazarus or StartLazarus executable if you have a various Lazarus versions to choose from. You can set this choice as the default.

Howard

Reply by email

John Landmesser
to Howard Page-Clark
Howard Page-Clark wrote 9 lines
Navigate to any .lpi file on your disk using the file browser (Nemo). Right click on that .lpi, and choose Properties. In the xxxx.lpi Properties dialog click on the third button at the top, Open With, and choose Lazarus from the list (if it is installed) or use the edit box at the bottom of the dialog to locate a Lazarus or StartLazarus executable if you have a various Lazarus versions to choose from. You can set this choice as the default. Howard

no, this way i would assign *.lpi AND similiar (= filetype XML ) files to lazarus application.

 See the notice above the Listbox with applications you mentioned.

But thanks for your post, seems to be tricky :-)

Reply by email

Mark Morgan Lloyd
to John Landmesser: I'm on Linux-Mint Cinnamon and i want to associate *.lpi with lazarus Application: *.lpi…
John Landmesser wrote 16 lines
I'm on Linux-Mint Cinnamon and i want to associate *.lpi with lazarus Application: *.lpi is of Filetype XML, but we need the fileExtension *.lpi here!! found: lazarus.desktop copied:  cp '/home/john1/lazarus/install/lazarus.desktop' /usr/share/applications/ and lazarus-mime.xml copied:  cp '/home/john1/lazarus/install/lazarus-mime.xml' '/usr/share/mime/application/' Content of these two files seems to define for what i'm looking for, but reboot wasn't enough. What i'm missing to get the filetypes/extension-Database updated? Tipps are welcome!!

Possibly one of the xdg-* programs... a bit of Googling suggests xdg-mime

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

John Landmesser
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote
Possibly one of the xdg-* programs... a bit of Googling suggests xdg-mime

seems to work now:

executed:
xdg-mime install ./lazarus-mime.xml

But *.xml is still opened by lazarus aplication. Could be because i really tried a lot of useless things before?!

FileExtensions are a real hassle on linux?!!

------------------------------------------------------------------------

Result:

xdg-mime install ./lazarus-mime.xml

creates:

'/home/john1/.local/share/mime/aliases'
'/home/john1/.local/share/mime/generic-icons'
'/home/john1/.local/share/mime/globs'
'/home/john1/.local/share/mime/globs2'
'/home/john1/.local/share/mime/icons'
'/home/john1/.local/share/mime/magic'
'/home/john1/.local/share/mime/mime.cache'
 '/home/john1/.local/share/mime/subclasses'
 '/home/john1/.local/share/mime/treemagic'
 '/home/john1/.local/share/mime/types'
 '/home/john1/.local/share/mime/version'
 '/home/john1/.local/share/mime/XMLnamespaces'

and there are more subdirs!

They all seems to handle lazarus *.lpi ...

Windows is much easier in this respect?!

Thanks for your tipps!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180116/f34b692a/attachment.html>

Reply by email