mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
Add setting to setup third party readers to work with YACReaderLibrary
This commit is contained in:
@ -46,3 +46,16 @@ bool YACReader::openComic(const ComicDB &comic,
|
||||
|
||||
return yacreaderFound;
|
||||
}
|
||||
|
||||
bool YACReader::openComicInThirdPartyApp(const QString &command, const QString &path)
|
||||
{
|
||||
QString mutableCommand = command;
|
||||
QString fullCommand;
|
||||
if (mutableCommand.contains("{comic_file_path}")) {
|
||||
fullCommand = mutableCommand.replace("{comic_file_path}", "\"" + path + "\"");
|
||||
} else {
|
||||
fullCommand = mutableCommand + " \"" + path + "\"";
|
||||
}
|
||||
|
||||
return QProcess::startDetached(fullCommand);
|
||||
}
|
||||
|
Reference in New Issue
Block a user