Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature requst: New yafti mode 'conditional' #179

Open
RoyalOughtness opened this issue Dec 1, 2023 · 8 comments
Open

Feature requst: New yafti mode 'conditional' #179

RoyalOughtness opened this issue Dec 1, 2023 · 8 comments
Assignees
Labels
question Further information is requested

Comments

@RoyalOughtness
Copy link
Contributor

RoyalOughtness commented Dec 1, 2023

The current available yafti modes are:

class YaftiRunModes(str, Enum):
    changed = "run-on-change"
    ignore = "run-once"
    disable = "disabled"

I'm proposing a new mode called 'conditional' that takes a conditional as input so that yafti can run based on information about the system

The syntax could look something like this:

title: Welcome to uBlue
properties:
  mode: "conditional"
  condition:
    run: flatpak remotes --columns=name | grep fedora
@abanna
Copy link
Collaborator

abanna commented May 2, 2024

@qoijjj if you're still still interested in this please do find me in discord. If not I'll close this in a week or so.

@abanna abanna self-assigned this May 2, 2024
@abanna abanna added this to uPortal May 2, 2024
@abanna abanna added the question Further information is requested label May 2, 2024
@RoyalOughtness
Copy link
Contributor Author

@abanna I'm still interested but if you aren't interested in this feature, feel free to close this.

@abanna
Copy link
Collaborator

abanna commented May 2, 2024

I have some ideas. I would like to better understand the feature you're looking for.

@RoyalOughtness
Copy link
Contributor Author

@abanna I can reach out on discord later. in short, it would be a conditional that determines whether yafti runs

@RoyalOughtness
Copy link
Contributor Author

a conditional provided by the writer of the config

@abanna
Copy link
Collaborator

abanna commented May 2, 2024

Sounds easy enough. I added a setting to disable it in dconf. But it seem like you would like it to be predefined in the os provided yaml?

@RoyalOughtness
Copy link
Contributor Author

disable what in dconf?

I want it to be like run-on-change, but instead it's run-on-x where x is any conditional

@abanna
Copy link
Collaborator

abanna commented May 2, 2024

I think am tracking. To save time lets just plan to get on a discord at some point to has out the details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: No status
Development

No branches or pull requests

2 participants