inventor (2.1.5-10-14) apps/demos/noodle/Interface.c++

Summary

 apps/demos/noodle/Interface.c++ |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

--- inventor-2.1.5-10.orig/apps/demos/noodle/Interface.c++
+++ inventor-2.1.5-10/apps/demos/noodle/Interface.c++
@@ -399,23 +399,23 @@
 void
 Interface::showAboutDialog()
 {
-   if (access(IVPREFIX "/demos/Inventor/noodle.about", R_OK) != 0) {
+   if (access(IVDEMOBINDIR"/noodle.about", R_OK) != 0) {
         system("xmessage 'Sorry, could not find "
-               IVPREFIX "/demos/Inventor/noodle.about' > /dev/null");
+               IVDEMOBINDIR"/noodle.about' > /dev/null");
         return;
     }
 
     char command[100];
-    sprintf(command, "which acroread > /dev/null");
+    sprintf(command, "which " PDFVIEWER " > /dev/null");
 
     int err = system(command);
     if (err) {
-        system("xmessage 'You must install acroread"
+        system("xmessage 'You must install " PDFVIEWER
                " for this function to work' > /dev/null");
         return;
     }
 
-    sprintf(command, "acroread " IVPREFIX "/demos/Inventor/noodle.about &");
+    sprintf(command, PDFVIEWER " " IVDEMOBINDIR"/noodle.about &");
     system(command);
 }