linux - How do I pass an environment variable to a Netbeans Makefile on Ubuntu? -
i'm using netbeans on linux (ubuntu 9.04) build c project.
how pass in environment variable that's it's visible makefile?
if normal export myvar="xyz" , run make command line works fine of course.
but netbeans doesn't seems use .bashrc environment, if click "build" in netbeans, make fails.
interestingly, problem doesn't seem occur on macosx - i've added variable ~/.macosx/environment.plist, , value is visible netbeans.
i found this post suggested modifying ~/netbeans-6.8/etc/netbeans.conf. i've tried this, adding -j-dmyvar=xyz end of netbeans_default_options, ie:
netbeans_default_options="-j-client -j-xverify:none -j-xss2m -j-xms32m -j-xx:permsize=32m -j-xx:maxpermsize=200m -j-dapple.laf.usescreenmenubar=true -j-dsun.java2d.noddraw=true -j-dmyvar=xyz" but didn't seem work.
edit:
this answer possibly not valid unity-based flavours of ubuntu.
the issue nothing netbeans - it's related ubuntu (ie gnome) launcher.
as this blog post explains, need add variables rather obscure ~/.gnomerc (no mercy? :) file in order them passed applications started launcher!
so edit ~/.gnomerc , add variables ~/.bashrc, eg:
export myvar="xyz" and logout/login.
Comments
Post a Comment