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

Make duration configurable #1

Merged
merged 5 commits into from
Nov 18, 2020
Merged

Make duration configurable #1

merged 5 commits into from
Nov 18, 2020

Conversation

cimm
Copy link
Contributor

@cimm cimm commented Nov 18, 2020

This adds the possibility to configure the time an image is shown, defaulting to 10 seconds per image.

The user of the snap can set their own duration via snap set picviewer-kiosk duration=60 (for a one minute per picture slideshow) which will be passed on to imv's -t 60 flag via the wrapper script. The configure script will default to 10 seconds if the provided value is invalid.

It's the first time I try to add a configuration option to a snap so maybe someone with more experience can point out my mistakes.

Copy link
Owner

@ogra1 ogra1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment inline ...

@cimm cimm requested a review from ogra1 November 18, 2020 13:57
Copy link
Owner

@ogra1 ogra1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect. looks fine ... merging

@ogra1 ogra1 merged commit 6cb12f9 into ogra1:main Nov 18, 2020
@cimm cimm deleted the configurable-duration branch November 19, 2020 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants