Page MenuHomeSolus

Lifeograph MIME Type
Open, NormalPublic

Description

Upon installation, Lifeograph is not registering properly its MIME type / file type with the OS.
If diary is unencrypted it's MIME type is recognized as "plain text document". For encrypted diaries it's MIME type is recognized correctly as ".diary document"

m-cote created this task.Feb 1 2018, 7:41 PM
m-cote edited projects, added Software; removed Lacks Project.Feb 1 2018, 7:44 PM
DataDrake edited projects, added Upstream Issue; removed Software.Jul 12 2018, 9:29 PM
DataDrake added a subscriber: DataDrake.

They don't ship MIME settings for the .diary type, so xdg-mime has no idea what these files are.

It appears that it has the right stuff, but is 100% designed to be run and installed by a user (rather than with packaging).

cmake/xdg.cmake is a script to setup up the mimetype for the user, but it'll never be included in the package that way.

I looked at the included MIME file and it didn't even set a file extension..sooo

I don't know much about mime (nor do I want to), but that should do it

$ cat lifeograph.xml 
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
  <mime-type type="application/x-lifeographdiary">
    <comment>Lifeograph diary</comment>
    <comment xml:lang="tr">Lifeograph günlüğü</comment>
    <magic priority="100">
      <match type="string" offset="0" value="LIFEOGRAPHDB\n"/>
    </magic>
    <glob pattern="*.diary"/>
  </mime-type>
</mime-info>
JoshStrobl edited projects, added Software; removed Upstream Issue.Jul 29 2018, 1:18 PM
JoshStrobl triaged this task as Normal priority.
JoshStrobl moved this task from Backlog to Package Fixes on the Software board.