Robust way to to read default applications

2017-09-25 Thread Nate Graham
Hello all, I'm working on some code that needs to get the default file manager application. I'm currently using KSharedConfig::openConfig to read mimeapps.list, which works as long as mimeapps.list exists. But I'm noticing that on a fresh install, mimeapps.list doesn't exist--it seems to get

Re: What's a robust way to to read default applications?

2017-09-24 Thread Nate Graham
Thanks, that worked perfectly! In case anyone's interested, the Phabricator revision that this applies to is https://phabricator.kde.org/D7971 Nate On 09/24/2017 09:24 AM, Elvis Angelaccio wrote: On domenica 24 settembre 2017 15:49:04 CEST, Nate Graham wrote: Hello all, I'm working on

Re: What's a robust way to to read default applications?

2017-09-24 Thread Elvis Angelaccio
On domenica 24 settembre 2017 15:49:04 CEST, Nate Graham wrote: Hello all, I'm working on some code that needs to get the default file manager application. I'm currently using KSharedConfig::openConfig to read mimeapps.list, which works as long as mimeapps.list exists. But I'm noticing that

What's a robust way to to read default applications?

2017-09-24 Thread Nate Graham
Hello all, I'm working on some code that needs to get the default file manager application. I'm currently using KSharedConfig::openConfig to read mimeapps.list, which works as long as mimeapps.list exists. But I'm noticing that on a fresh install, mimeapps.list doesn't exist--it seems to get