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: | "Zhang, Tong via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Kay Kasemir <kasemirk at ornl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Thu, 21 Jul 2022 15:05:43 +0000 |
Kay, I’m talking about CS-Studio on Eclipse, not Phoebus. The difference is the highlighted in the box, where I created a bookmark called datafiles, but it could not be seen in the Open dialog in CS-Studio, I forgot to mention, it is not necessary happening with
external app calling, but from any Open action from CS-Studio, e.g. Open an OPI through the menu. I also tested against Phoebus, it works without such issue. But I’m looking for a solution for CS-Studio. Thanks, Tong From: Kay Kasemir <kasemirk at ornl.gov>
[EXTERNAL] This email originated from outside of FRIB
> 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 |