Review Request 113830: Allow unique apps to access command-line arguments of later invocations
Alex Merry
kde at randomguy3.me.uk
Fri Nov 22 11:38:15 UTC 2013
On 22/11/13 11:05, Alex Merry wrote:
> On 22/11/13 10:32, David Faure wrote:
>> Which reminds me that we don't have a replacement for KCmdLineArgs::url(i)
>> instead, i.e. a method that resolves "an absolute filename, a relative
>> filename (given a CWD), or a URL" into a QUrl, for convenience. Many (kio-
>> based) apps need that. It doesn't have to be part of QCommandLineParser
>> though... maybe a QUrl::fromUserInput(string, cwd), but the need to call
>> QFile::exists() in there sounds like a bad location for it... I'm open to
>> suggestions :)
>>
>> For apps that don't support URLs, something like QDir(cwd).filePath(str) is
>> enough.
>
> If it's going to go in Qt, a static method on QProcess or
> QProcessEnvironment might be logical? Since it's dealing with relative
> paths.
Actually, QFile seems like the most obvious location.
Alex
More information about the Kde-frameworks-devel
mailing list