FS#52186 - [qtcreator] Install qmake mime types

Attached to Project: Arch Linux
Opened by Phil Schaf (flying-sheep) - Saturday, 17 December 2016, 09:57 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 30 March 2017, 00:52 GMT
Task Type Feature Request
Category Upstream Bugs
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Associating .pro files with Qt Creator is currently impossible because the following file isn’t installed.

src/plugins/qmakeprojectmanager/QmakeProjectManager.mimetypes.xml

Please install it.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 30 March 2017, 00:52 GMT
Reason for closing:  Won't fix
Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 22 January 2017, 13:02 GMT
Can you make an upstream bug for this? Fedora's qtcreator package also doesn't appear to have this file so I'm skeptical as to whether I should just put it there. Upstream knows this much better than downstream maintainers do.
Comment by Tobias Hunger (hunger) - Thursday, 02 March 2017, 22:57 GMT
All the *.mimetypes.xml files are built into the plugins themselves and are not installed.

Those files are for internal use and are written for the internal MIME database. I am not sure this is 100% compatible with real MIME databases, so I am very reluctant to expose these files.
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 03 March 2017, 07:03 GMT
So what am I to do?
Comment by Phil Schaf (flying-sheep) - Friday, 03 March 2017, 08:20 GMT
The most comprehensive thing to do would be to get them into shared-mime-data. Will take a while though. That's what I did with the Jupyter notebook mine type.

However, why wouldn't they compatible with the xdg mime database. Granted, I didn't run them through a validator, but they work just fine after being installed systemwide.
Comment by Tobias Hunger (hunger) - Friday, 03 March 2017, 12:29 GMT
Ideally all the mime-types that creator can handle would be in shared-mime-info. This includes files a user might want to open in creator by default:
*.pro/*.pri files (qmake projects), CMakeLists.txt (cmake), Makefile.am (autotools), *.qbs (qbs), *.qtcreator (Generic projects), and *.qmlproject (QML projects).

There are lots more mime types that Creator can handle (check Tools>Options>Environment>MIME Types for a full list).

I have no idea how to get that data there though (actually I am not even sure how to check what is in the database!). If somebody tells me, then I can try to ask whoever is managing that.
Comment by Phil Schaf (flying-sheep) - Monday, 06 March 2017, 14:21 GMT
well, you file a bug in its bug tracker while ideally also attaching a patch:

https://bugs.freedesktop.org/buglist.cgi?bug_status=__open__&product=shared-mime-info
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 30 March 2017, 00:52 GMT
Alright so I'm really quite unsure what to do with this. I think the discussion has transcended the issue at hand and apparently Tobias thinks that I shouldn't really change the package as it stands. That being the case, I'm going to close this for now. If the situation changes, please reopen.

Loading...