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 2024 2025 | 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 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: CS-Studio: File Manager configuration when executing external command |
From: | "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Zhang, Tong" <ZhangT at frib.msu.edu> |
Date: | Thu, 21 Jul 2022 14:58:58 +0000 |
> After the external application is started up through the “Execute Command” action of an
ActionButton, everything looks to be working well, but when doing the save/open businesses through the external app interface, it seems that the current user File Manager configuration is not being honored, e.g. you cannot see any bookmarked
locations on the pop-up file/directory open dialog
Not sure what the difference is, but that works for me in the most recent version of CS-Studio, i.e. the one that no longer relies on Eclipse.
The relevant code should be
https://github.com/ControlSystemStudio/phoebus/blob/57a1379045d318c08763abd352737b16dec53e64/app/display/runtime/src/main/java/org/csstudio/display/builder/runtime/ActionUtil.java#L268, which then calls this
https://github.com/ControlSystemStudio/phoebus/blob/master/core/framework/src/main/java/org/phoebus/framework/jobs/CommandExecutor.java
I've opened gedit, added a "tmp" bookmark to its file locator.
Then I opened CS-Studio/phoebus, opened the example displays, "Actions", "Open *.def file" which on Linux opens gedit, opened the file locator in gedit -> It shows the "tmp" bookmark.
-Kay
|