Switch to side-by-side view

--- a/src/qtgui/respopup.cpp
+++ b/src/qtgui/respopup.cpp
@@ -77,6 +77,27 @@
                              SLOT(menuOpenWith(QAction *)));
             }
         }
+
+        // See if there are any desktop files in $RECOLL_CONFDIR/scripts
+        // and possibly create a "run script" menu.
+        aps.clear();
+        ddb = new DesktopDb(path_cat(theconfig->getConfDir(), "scripts"));
+        if (ddb && ddb->allApps(&aps) && !aps.empty()) {
+            QMenu *sub = popup->addMenu(me->tr("Run Script"));
+            if (sub) {
+                for (vector<DesktopDb::AppDef>::const_iterator it = aps.begin();
+                     it != aps.end(); it++) {
+                    QAction *act = new 
+                        QAction(QString::fromUtf8(it->name.c_str()), me);
+                    QVariant v(QString::fromUtf8(it->command.c_str()));
+                    act->setData(v);
+                    sub->addAction(act);
+                }
+                sub->connect(sub, SIGNAL(triggered(QAction *)), me, 
+                             SLOT(menuOpenWith(QAction *)));
+            }
+        }
+        delete ddb;
     }
 
     popup->addAction(me->tr("Copy &File Name"), me, SLOT(menuCopyFN()));