Allow setting fields in fs subtree. Use for an application tag used for starting a specialized viewer

This commit is contained in:
dockes
2009-10-30 10:16:37 +00:00
parent e7dfd57d6e
commit 4d0e860a04
5 changed files with 25 additions and 10 deletions
+6 -2
View File
@@ -918,9 +918,13 @@ void RclMain::startNativeViewer(Rcl::Doc doc)
// Look for appropriate viewer
string cmd;
if (prefs.useDesktopOpen) {
cmd = rclconfig->getMimeViewerDef("application/x-all");
cmd = rclconfig->getMimeViewerDef("application/x-all", "");
} else {
cmd = rclconfig->getMimeViewerDef(doc.mimetype);
string apptag;
map<string,string>::const_iterator it;
if ((it = doc.meta.find("apptag")) != doc.meta.end())
apptag = it->second;
cmd = rclconfig->getMimeViewerDef(doc.mimetype, apptag);
}
if (cmd.length() == 0) {