Review Request: Add and use alternative commant line program name
Raphael Kubo da Costa
rakuco at freebsd.org
Wed Nov 23 22:06:14 UTC 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103223/#review8429
-----------------------------------------------------------
Hmm, I think we can look for a cleaner, more scalable approach here.
How about something along these lines (I haven't thought it thoroughly): ExtractProgram and friends become QStringLists instead of QStrings, so one can specify as many programs as one wants for each. CliInterface::runProcess can then be refactored so you have two overloads, such as runProcess(const QString& programName, ...) and runProcess(const QStringList& candidates, ...), with the common part for both being moved to separate private method.
This, of course, assumes all the binaries for each program have the same command line interface and behave the same way; I'm OK with this for now as is is currently needed only for the 7z/7za bug.
- Raphael Kubo da Costa
On Nov. 23, 2011, 9:16 p.m., Michal Sciubidlo wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103223/
> -----------------------------------------------------------
>
> (Updated Nov. 23, 2011, 9:16 p.m.)
>
>
> Review request for KDE Utils and Raphael Kubo da Costa.
>
>
> Description
> -------
>
> Add and use alternative commant line program name.
> ListProgramAlternative, ExtractProgramAlternative, DeleteProgramAlternative, AddProgramAlternative can be set by CliInterface plugins if CliInterface can't find normal names it can use alternative ones. This patch is useful for 7z and 7za programs. Ark used 7z program but it's not allways installed. 7za can operate on 7z archives and is more common.
>
>
> This addresses bug 208864.
> http://bugs.kde.org/show_bug.cgi?id=208864
>
>
> Diffs
> -----
>
> kerfuffle/cliinterface.h 2d4187c
> kerfuffle/cliinterface.cpp 90f77f2
> plugins/cli7zplugin/cliplugin.cpp 1742f91
>
> Diff: http://git.reviewboard.kde.org/r/103223/diff/diff
>
>
> Testing
> -------
>
> Delete /usr/bin/7z file keep /usr/bin/7za. Ark still can work with 7z archives.
>
>
> Thanks,
>
> Michal Sciubidlo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20111123/b7be9a1d/attachment.html>
More information about the Kde-utils-devel
mailing list