|
From: Edward D. <eld...@tr...> - 2013-10-10 00:29:58
|
How do I set an enviromnment variable for JEdit on Linux ? There is a shell script to run Jedit on Linux, which eventually calls java passing the jedit.jar but if I set and export an environment variable from within that shell script, JEdit is not picking it up. |
|
From: Eric L. <eri...@gm...> - 2013-10-10 14:33:47
|
what environment variable are you setting? If you're exporting it in the
script that launches jedit, it should definitely see it.
Should it be a define passed on the command line, perhaps? ("-D" switch)
On Wed, Oct 9, 2013 at 7:29 PM, Edward Diener <eld...@tr...>wrote:
> How do I set an enviromnment variable for JEdit on Linux ?
>
> There is a shell script to run Jedit on Linux, which eventually calls
> java passing the jedit.jar but if I set and export an environment
> variable from within that shell script, JEdit is not picking it up.
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> --
> -----------------------------------------------
> jEdit Users' List
> jEd...@li...
> https://lists.sourceforge.net/lists/listinfo/jedit-users
>
--
Eric Ladner
|
|
From: Edward D. <eld...@tr...> - 2013-10-10 20:01:23
|
On 10/10/2013 10:33 AM, Eric Ladner wrote:
> what environment variable are you setting? If you're exporting it in
> the script that launches jedit, it should definitely see it.
I am exporting it in the script that launches jedit but it does not
appear to be picking it up. The reason I say that is that the Project
Viewer plugin has an option which can use environment variables as a
prefix to paths when accessing project data. But in Linux the
corresponding environment variable is not being used by PV even after I
have set and exported it in the launch script.
Is there a way in jedit to get it to show what environment variables are
in effect when I am using it ? Perhaps the console plugin lets me see that.
>
> Should it be a define passed on the command line, perhaps? ("-D" switch)
I do not know. is this the way to add an environment variable so that
jedit picks it up when it is run ?
>
>
> On Wed, Oct 9, 2013 at 7:29 PM, Edward Diener <eld...@tr...
> <mailto:eld...@tr...>> wrote:
>
> How do I set an enviromnment variable for JEdit on Linux ?
>
> There is a shell script to run Jedit on Linux, which eventually calls
> java passing the jedit.jar but if I set and export an environment
> variable from within that shell script, JEdit is not picking it up.
|
|
From: Alan E. <ala...@gm...> - 2013-10-10 20:16:45
|
Double-check you are running the script you think you are. It works fine for me, for variables such as EDITOR and VISUAL. "which jedit" from the prompt tells you what it will run when you type "jedit" On Thu, Oct 10, 2013 at 1:00 PM, Edward Diener <eld...@tr...>wrote: > On 10/10/2013 10:33 AM, Eric Ladner wrote: > > what environment variable are you setting? If you're exporting it in > > the script that launches jedit, it should definitely see it. > > Is there a way in jedit to get it to show what environment variables are > in effect when I am using it ? Perhaps the console plugin lets me see that. > Yes, type "env" from the Console system prompt. |
|
From: Edward D. <eld...@tr...> - 2013-10-11 15:01:10
|
On 10/10/2013 4:16 PM, Alan Ezust wrote: > Double-check you are running the script you think you are. > It works fine for me, for variables such as EDITOR and VISUAL. > > "which jedit" from the prompt tells you what it will run when you type > "jedit" > > > On Thu, Oct 10, 2013 at 1:00 PM, Edward Diener <eld...@tr... > <mailto:eld...@tr...>> wrote: > > On 10/10/2013 10:33 AM, Eric Ladner wrote: > > what environment variable are you setting? If you're exporting it in > > the script that launches jedit, it should definitely see it. > > Is there a way in jedit to get it to show what environment variables are > in effect when I am using it ? Perhaps the console plugin lets me > see that. > > > Yes, type "env" from the Console system prompt. The environment variable is being set correctly in Linux but ProjectViewer is not using it on Linux to find the path to projects there when the variable prefixed paths PV option is checked. I also noticed in Project Viewer on Windows that even when I set a project path using all forward slashes ( and all interior paths in the project xml file to forward slashes ) to accomodate the path on Linux, Project Viewer on Windows silently sets everything back to back slashes. Is this what is confusing Project Viewer on Linux, that the path is showing back slashes rather than forward slashes in the PV.xml and project XML files ? |
|
From: Alan E. <ala...@gm...> - 2013-10-11 15:09:30
|
If you are trying to get interoperability between pv.xml files on windows vs linux, and also using variable-prefix filenames, that could explain what is happening. I've never tested that ability. On Fri, Oct 11, 2013 at 8:00 AM, Edward Diener <eld...@tr...>wrote: > On 10/10/2013 4:16 PM, Alan Ezust wrote: > > Double-check you are running the script you think you are. > > It works fine for me, for variables such as EDITOR and VISUAL. > > > > "which jedit" from the prompt tells you what it will run when you type > > "jedit" > > > > > > On Thu, Oct 10, 2013 at 1:00 PM, Edward Diener <eld...@tr... > > <mailto:eld...@tr...>> wrote: > > > > On 10/10/2013 10:33 AM, Eric Ladner wrote: > > > what environment variable are you setting? If you're exporting > it in > > > the script that launches jedit, it should definitely see it. > > > > Is there a way in jedit to get it to show what environment variables > are > > in effect when I am using it ? Perhaps the console plugin lets me > > see that. > > > > > > Yes, type "env" from the Console system prompt. > > The environment variable is being set correctly in Linux but > ProjectViewer is not using it on Linux to find the path to projects > there when the variable prefixed paths PV option is checked. > > I also noticed in Project Viewer on Windows that even when I set a > project path using all forward slashes ( and all interior paths in the > project xml file to forward slashes ) to accomodate the path on Linux, > Project Viewer on Windows silently sets everything back to back slashes. > Is this what is confusing Project Viewer on Linux, that the path is > showing back slashes rather than forward slashes in the PV.xml and > project XML files ? > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk > -- > ----------------------------------------------- > jEdit Users' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-users > |
|
From: Edward D. <eld...@tr...> - 2013-10-11 15:40:11
|
On 10/11/2013 11:09 AM, Alan Ezust wrote: > If you are trying to get interoperability between pv.xml files on > windows vs linux, and also using variable-prefix filenames, that could > explain what is happening. I've never tested that ability. Yes, that is what I am trying to do, Is that not the main purpose of variable-prefix filenames ? Furthermore it does seem a bug of PV on Windows to force back slashes in the XML files for paths. > > > > > On Fri, Oct 11, 2013 at 8:00 AM, Edward Diener <eld...@tr... > <mailto:eld...@tr...>> wrote: > > On 10/10/2013 4:16 PM, Alan Ezust wrote: > > Double-check you are running the script you think you are. > > It works fine for me, for variables such as EDITOR and VISUAL. > > > > "which jedit" from the prompt tells you what it will run when you > type > > "jedit" > > > > > > On Thu, Oct 10, 2013 at 1:00 PM, Edward Diener > <eld...@tr... <mailto:eld...@tr...> > > <mailto:eld...@tr... > <mailto:eld...@tr...>>> wrote: > > > > On 10/10/2013 10:33 AM, Eric Ladner wrote: > > > what environment variable are you setting? If you're > exporting it in > > > the script that launches jedit, it should definitely see it. > > > > Is there a way in jedit to get it to show what environment > variables are > > in effect when I am using it ? Perhaps the console plugin lets me > > see that. > > > > > > Yes, type "env" from the Console system prompt. > > The environment variable is being set correctly in Linux but > ProjectViewer is not using it on Linux to find the path to projects > there when the variable prefixed paths PV option is checked. > > I also noticed in Project Viewer on Windows that even when I set a > project path using all forward slashes ( and all interior paths in the > project xml file to forward slashes ) to accomodate the path on Linux, > Project Viewer on Windows silently sets everything back to back slashes. > Is this what is confusing Project Viewer on Linux, that the path is > showing back slashes rather than forward slashes in the PV.xml and > project XML files ? > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the > most from > the latest Intel processors and coprocessors. See abstracts and > register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk > -- > ----------------------------------------------- > jEdit Users' List > jEd...@li... > <mailto:jEd...@li...> > https://lists.sourceforge.net/lists/listinfo/jedit-users > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk > > > |
|
From: Alan E. <ala...@gm...> - 2013-10-11 16:06:13
|
On Fri, Oct 11, 2013 at 8:39 AM, Edward Diener <eld...@tr...>wrote: > On 10/11/2013 11:09 AM, Alan Ezust wrote: > > If you are trying to get interoperability between pv.xml files on > > windows vs linux, and also using variable-prefix filenames, that could > > explain what is happening. I've never tested that ability. > > Yes, that is what I am trying to do, Is that not the main purpose of > variable-prefix filenames ? > I guess it was the "ultimate goal" of adding this feature to PV. But it requires more changes to PV (and possibly also jEdit) than I was ready to make. Currently, there is interoperability between Mac and Linux but not between Windows and the other platforms. But the variable prefixes still help you move from one windows machine to another. > > Furthermore it does seem a bug of PV on Windows to force back slashes in > the XML files for paths. > Oh, you mean bug#3612151 ? |
|
From: Edward D. <eld...@tr...> - 2013-10-11 17:04:09
|
On 10/11/2013 12:06 PM, Alan Ezust wrote: > > > > On Fri, Oct 11, 2013 at 8:39 AM, Edward Diener <eld...@tr... > <mailto:eld...@tr...>> wrote: > > On 10/11/2013 11:09 AM, Alan Ezust wrote: > > If you are trying to get interoperability between pv.xml files on > > windows vs linux, and also using variable-prefix filenames, that could > > explain what is happening. I've never tested that ability. > > Yes, that is what I am trying to do, Is that not the main purpose of > variable-prefix filenames ? > > > I guess it was the "ultimate goal" of adding this feature to PV. > > But it requires more changes to PV (and possibly also jEdit) than I was > ready to make. > Currently, there is interoperability between Mac and Linux but not > between Windows and the other platforms. > But the variable prefixes still help you move from one windows machine > to another. > > > > > Furthermore it does seem a bug of PV on Windows to force back slashes in > the XML files for paths. > > > Oh, you mean bug#3612151 ? Similar. Actually all forward slash characters in the PV XML files become back slash characters on jedit in Windows. So naturally on Linux these become incorrect paths. |