EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts
From: "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov>
To: "Dmitry Yu. Bolkhovityanov" <D.Yu.Bolkhovityanov at inp.nsk.su>, "Dr. Simon Friederich" <s.friederich at uni-mainz.de>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 13 Nov 2024 14:34:05 +0000

You can try “file:…” URL syntax:

 

    org.csstudio.display.builder.model/color_files=file:///Program%20Files/mesa-phoebus-win/app/mesa_color.def

 

That should work, but now you rely on /Program Files/mesa-phoebus-win/… as the install location.

 

If you prefer to use the install location from the system property,

 

   org.csstudio.display.builder.model/color_files=$(phoebus.install)/mesa_color.def

then unfortunately that might expand into this and fail because of the space:

 

   org.csstudio.display.builder.model/color_files=file:///Program Files/mesa-phoebus-win/app/mesa_color.def

 

Maybe you can put something clever into your launcher *.bat file:

Locate the install location, turn that into a proper “file://with_%20_for_spaces”, then start phoebus with that install location?

 

  @java -Dphoebus.install=…

 

 

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Dmitry Yu. Bolkhovityanov via Tech-talk <tech-talk at aps.anl.gov>
Date: Wednesday, November 13, 2024 at 8:22
AM
To: Dr. Simon Friederich <s.friederich at uni-mainz.de>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts

Hi!

Have you tried "8.3 alias" for "Program Files" - "progra~1"?  I.e.

org.csstudio.display.builder.model/color_files=C:/progra~1/mesa-phoebus-win/app/mesa_color.def
org.csstudio.display.builder.model/font_files=C:/progra~1/mesa-phoebus-win/app/mesa_font.def


On Wed, 13 Nov 2024, Dr. Simon Friederich via Tech-talk wrote:

> Hi Kay,
>
> Now I see. It seems that for Windows the expansion does not work properly due
> to the whitespace in "Program Files" *facepalm*:
>
> org.csstudio.display.builder.model/color_files=C:/Program%20Files/mesa-phoebus-win/app/mesa_color.def
> org.csstudio.display.builder.model/font_files=C:/Program%20Files/mesa-phoebus-win/app/mesa_font.def
>
> Seems like I need to find another workaround.
>
> Best regards
>
> Am 12.11.2024 um 18:14 schrieb Kasemir, Kay:
>>
>> >  Without success I've tried
>>
>>    >
>>  org.csstudio.display.builder.model/color_files=$(phoebus.install)/mesa_color.def
>>    >
>>  org.csstudio.display.builder.model/font_files=$(phoebus.install)/mesa_font.def
>>
>>  Curious. When I try it, system properties like
>>
>>  $(user.home)
>>
>>  $(phoebus.home)
>>
>>  $(phoebus.install)
>>
>>  are all expanded in the color_files or font_files setting.
>>
>>  *From: *Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Dr. Simon
>>  Friederich via Tech-talk <tech-talk at aps.anl.gov>
>>  *Date: *Tuesday, November 12, 2024 at 4:00?AM
>>  *To: *tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
>>  *Subject: *[EXTERNAL] Phoebus settings.ini - Path to predefined Colors and
>>  Fonts
>>
>>  Dear all,
>>
>>  I'd like to add custom colors and fonts in Phoebus.
>>
>>  If I specify the full path, e.g. (Windows)
>>
>>  org.csstudio.display.builder.model/color_files=C:\\Program
>>  Files\\mesa-phoebus-win\\app\\mesa_color.def
>>  org.csstudio.display.builder.model/font_files=C:\\Program
>>  Files\\mesa-phoebus-win\\app\\mesa_font.def
>>
>>  or (Linux)
>>
>>   org.csstudio.display.builder.model/color_files=/home/mesa/phoebus-product/mesa_color.def
>>
>>   org.csstudio.display.builder.model/font_files=/home/mesa/phoebus-product/mesa_font.def
>>
>>  This works as expected.
>>
>>  Yet I'd like to use relative paths as I've successfully used jpackage to
>>  build installers for Windows and Linux.
>>
>>  Without success I've tried
>>
>>  org.csstudio.display.builder.model/color_files=$(phoebus.install)/mesa_color.def
>>  org.csstudio.display.builder.model/font_files=$(phoebus.install)/mesa_font.def
>>
>>  Other spellings,
>>
>>  ...=./mesa_color.def
>>    ...=./mesa_font.def
>>
>>  where $(phoebus.install) should point to the correct path as
>>  "site_welcome.html" is in the same path and works as expected (Also
>>  Help->About->Details->System Properties show phoebus.install).
>>
>>  Do you know how to achieve this?
>>
>>  Best regards
>>  Simon
>>
>>  --
>>  Dr. Simon Friederich
>>  Institut f?r Kernphysik
>>  Kollaboration B | MESA
>>  Johannes Gutenberg-Universit?t Mainz
>>  Johann-Joachim-Becher-Weg 45
>>  D 55128 Mainz
>>  Tel.: +49 (0)6131 39-23160
>>  E-Mail:s.friederich at uni-mainz.de


Replies:
Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts Dr. Simon Friederich via Tech-talk
References:
Phoebus settings.ini - Path to predefined Colors and Fonts Dr. Simon Friederich via Tech-talk
Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts Kasemir, Kay via Tech-talk
Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts Dr. Simon Friederich via Tech-talk
Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts Dmitry Yu. Bolkhovityanov via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts Dmitry Yu. Bolkhovityanov via Tech-talk
Next: Re: [Ext] RE: Help with motorNewport config Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
Navigate by Thread:
Prev: Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts Dmitry Yu. Bolkhovityanov via Tech-talk
Next: Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts Dr. Simon Friederich via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
ANJ, 18 Nov 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·