https://bugs.kde.org/show_bug.cgi?id=490827

David Redondo <k...@david-redondo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k...@david-redondo.de

--- Comment #33 from David Redondo <k...@david-redondo.de> ---
Thanks, we can easily work around not absolute paths in the portal as those
dont make sense cross process. KFileWidget docs also say no relative paths but
doesnt check it and runs into the assert sometimes

#include <KFileWidget>
#include <QApplication>
#include <QUrl>
#include <unistd.h>

int main(int argc, char**argv){
    chdir(getenv("HOME"));
    QApplication app(argc, argv);
    KFileWidget f(QUrl("file:.cache")); // does not explode, ignores URL
    // KFileWidget f(QUrl("file:./.cache")); // explodes
    f.setUrl(QUrl("file:.cache")); // explodes
    f.show();
    app.exec();
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to