Allow `-clean` command line option with `-app` and `-resource` options
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reading Phoebus's command-line handling for -clean, -app, and -resource, then trace how startup and requests are handled when Phoebus is already open. The issue does not name specific files or tests, so locate the relevant entry points and existing coverage first. Done means a clean launch opens the requested app or resource without restoring prior state, while an already-running instance ignores -clean and opens the request normally.
Written by the indexing model from the issue text.
Description
We have a use case where we would want to launch a BOB screen in its own window from the terminal, e.g.
phoebus.sh -resource "file:/path/to/file/example.bob@target=window"
The only problem with this is that by default this will bring up the persisted Phoebus state, which might contain other open windows or screen editor tabs etc. At that point, the only way to ensure only the 'example.bob' screen appears is to make sure you close all the other windows/tabs before shutting phoebus down (not ideal!) or you first run with -clean:
phoebus.sh -clean
phoebus.sh -resource "file:/path/to/file/example.bob@target=window"
I feel like it would be much cleaner to be able to run something like:
phoebus.sh -clean -resource "file:/path/to/file/example.bob@target=window"
which is basically saying I want a clean start (no persisted state) and to open the following resource.
However the current design of Phoebus is such that -clean overrides any other option (e.g -resource xx, -app xx). Does anyone know the original reasoning behind this and whether we could change this behavior to something like that described above?
The desired behavior would be as such:
- If Phoebus isn't open then clean (i.e. do not load previous state) and open the resource/app.
- If Phoebus is already open, then the
-cleanis automatically ignored and the resource/app will just be opened as normal (and everything already open remains).
I am happy to put in a PR to make this change but wanted to get some feedback first to make sure I haven't missed anything about the behavior?
- Dominant language
- Java
- Stars
- 130
- Forks
- 132
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 19
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ControlSystemStudio/phoebus
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ControlSystemStudio/phoebus#3983 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ControlSystemStudio/phoebus#3979 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
ControlSystemStudio/phoebus#3962 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ControlSystemStudio/phoebus#3865 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
ControlSystemStudio/phoebus#3980 ·
Maintainers usually reply within 2 days
All issues in ControlSystemStudio/phoebus
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
geonetwork/core-geonetwork#9592 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
apache/rocketmq-dashboard#7361 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
higress-group/himarket#358 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day