Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 3251  / 1 Year ago, mon, december 5, 2022, 6:28:55

Here is my problem: When I search from Unity's Dash Home for NetBeans and drag&drop it to unity launcher it, I observed that netbeans does not have access to my environment variables which were defined in my .bashrc file as follows



... 
export SCALA_HOME=/usr/local/typesafe-stack
...


When I run NetBeans from the gnome-terminal I don't observe that problem about the environment variable.



I also made a desktop file instead. Here is how I defined my netbeans.desktop file:



[Desktop Entry]
Type=Application
Name=NetBeans IDE 7.0.1
Icon=/usr/local/netbeans-7.0.1/nb/netbeans.png
Exec=netbeans
Terminal=false
Categories=Development;IDE;
StartupNotify=false


How can I modify this file so that it will be aware of the user's environment variables?



Thanks in advance,



Yours sincerely.



ciuncan


More From » 11.10

 Answers
3

Add this:



SCALA_HOME=/usr/local/typesafe-stack


to this:



/etc/environment


Why the Unity launcher doesn't source the users environment from .bashrc, as it should IMO, is anyone's guess.


[#41003] Tuesday, December 6, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gliroopy

Total Points: 290
Total Questions: 115
Total Answers: 114

Location: Egypt
Member since Tue, May 3, 2022
2 Years ago
;