LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 8 Linux Launch Error from KDE

I successfully installed LabVIEW 8 on Red Hat Enterprise Linux WS release 4 (Nuhant Update1) with kernel version 2.6.9-11.EL.  The installation automaticially placed a new Applications >> LabVIEW entry into the KDE (version 3.3.1-3.10 Red Hat) window menu that launches LabVIEW with the following command line:
 
labview -launch %f
 
When the LabVIEW item is selected from the KDE menu it looks like a session shell window is briefly created and then the error message -- Session 'Shell' exited with signal 1. -- is momentarily displayed in another popup.  LabVIEW doesn't start.  However I found that LabVIEW will start normally from a session shell by simply typing -- labview.
 
I tried many variations of command line in the KDE menu item but nothing seems to help.  Does anyone know what the problem may be?
 
Kurt Fielding
Battelle Energy Alliance
 
0 Kudos
Message 1 of 3
(2,669 Views)
It seems that the link it puts on the KDE applications menu is meant to allow for dragging files onto the icon.  The %f is the file dragged onto the icon.  If you want, you can change the functionality of the KDE button through use of the menu editor (in KDE, not in LabView).  If you prefer command line, refer to the userguide on menus: http://docs.kde.org/development/en/kdebase/userguide/kde-menu.html.  Have the command run for the labview icon to be 'labview' and not 'labview -launch %f'.

Good luck

0 Kudos
Message 2 of 3
(2,664 Views)
Robert, thank you for your advice.
 
I found that the KDE menu editor (Control Panel) wasn't saving the changes I was making to the menu item.  I ended up manually editing the file at: /usr/share/applnk/Applications/LabVIEW.kdelnk.  (This is a duplicate of the file at: /usr/local/natinst/LabVIEW-8.0/linux/kde/applnk/Applications/LabVIEW.kdelnk.)
 
Within the LabVIEW.kdelnk file I change the command line to be simply: Exec=labview.  I also changed Terminal=0 -- this was the key to the error I was getting.  Now when I ran the KDE menu editor the correct values were loaded and I then simply saved the configuration from the KDE menu editor and everything worked fine from the menu selection.
 
I first tried changing the permissions on the LabVIEW.kdelnk file, since it was a read-only file, and then tried editing it from the KDE menu editor but it still didn't save the values back to the LabVIEW.kdelnk file.
 
This is rather a brute force fix.  There may be a simpler solution but I don't know what it is.
 
Kurt
 
0 Kudos
Message 3 of 3
(2,638 Views)