{"action":"created","issue":{"url":"https://api.github.com/repos/panzi/qvtf/issues/1","repository_url":"https://api.github.com/repos/panzi/qvtf","labels_url":"https://api.github.com/repos/panzi/qvtf/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/panzi/qvtf/issues/1/comments","events_url":"https://api.github.com/repos/panzi/qvtf/issues/1/events","html_url":"https://github.com/panzi/qvtf/issues/1","id":196113520,"number":1,"title":"Viewing images in Gwenview","user":{"login":"FreeSlave","id":5596503,"avatar_url":"https://avatars.githubusercontent.com/u/5596503?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeSlave","html_url":"https://github.com/FreeSlave","followers_url":"https://api.github.com/users/FreeSlave/followers","following_url":"https://api.github.com/users/FreeSlave/following{/other_user}","gists_url":"https://api.github.com/users/FreeSlave/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeSlave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeSlave/subscriptions","organizations_url":"https://api.github.com/users/FreeSlave/orgs","repos_url":"https://api.github.com/users/FreeSlave/repos","events_url":"https://api.github.com/users/FreeSlave/events{/privacy}","received_events_url":"https://api.github.com/users/FreeSlave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T17:32:23Z","updated_at":"2016-12-17T03:36:53Z","closed_at":null,"body":"It seems like Gwenview requires mime type to be installed to view .vtf images.\r\nEven 'Open with' Gwenview does not help. Kolourpaint shows the image, but vtf is still is not in the list of supported formats.\r\n\r\nThe solution is to install mime type. Here's XML description (I wrote it on my own):\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<mime-info xmlns=\"http://www.freedesktop.org/standards/shared-mime-info\">\r\n\t<mime-type type=\"image/x-vtf\">\r\n\t\t<comment>Valve Texture Format</comment>\r\n\t\t<glob pattern=\"*.vtf\"/>\r\n\t\t<magic priority=\"60\">\r\n\t\t\t<match value=\"0x00465456\" type=\"little32\" offset=\"0\"/>\r\n\t\t</magic>\r\n\t</mime-type>\r\n</mime-info>\r\n```\r\n\r\nIt should be installed to specific location on system (/usr/share/mime/packages) and then get update-mime-database called. It can be done with help of SharedMimeInfo package for CMake.\r\n\r\nYou can look how it's done in my qt plugin (made for half-life sprites) https://bitbucket.org/FreeSlave/qt-sprite-image-plugin"},"comment":{"url":"https://api.github.com/repos/panzi/qvtf/issues/comments/267740393","html_url":"https://github.com/panzi/qvtf/issues/1#issuecomment-267740393","issue_url":"https://api.github.com/repos/panzi/qvtf/issues/1","id":267740393,"user":{"login":"panzi","id":134175,"avatar_url":"https://avatars.githubusercontent.com/u/134175?v=3","gravatar_id":"","url":"https://api.github.com/users/panzi","html_url":"https://github.com/panzi","followers_url":"https://api.github.com/users/panzi/followers","following_url":"https://api.github.com/users/panzi/following{/other_user}","gists_url":"https://api.github.com/users/panzi/gists{/gist_id}","starred_url":"https://api.github.com/users/panzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panzi/subscriptions","organizations_url":"https://api.github.com/users/panzi/orgs","repos_url":"https://api.github.com/users/panzi/repos","events_url":"https://api.github.com/users/panzi/events{/privacy}","received_events_url":"https://api.github.com/users/panzi/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T03:36:53Z","updated_at":"2016-12-17T03:36:53Z","body":"You're right. Care to make a pull request? :)"}}
{"actor":{"display_login":"panzi"}}