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

cabana: display warning if failed to write settings #29873

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Sep 11, 2023

my cabana has always reverted to default settings every time I start it up for the past week. Until I found it's a permission issue.
think it's better to display a warning for QSettings::AccessError than silently skipping it.

@github-actions github-actions bot added the tools label Sep 11, 2023
@jnewb1
Copy link
Contributor

jnewb1 commented Sep 11, 2023

Can you also add “settings” to the gitignore? I always have to revert it because it defaults to my workspace directory 😅

@deanlee
Copy link
Contributor Author

deanlee commented Sep 11, 2023

not sure why, but it's already in .gitignore:

moc_*
*.moc
cabana
settings
dbc/car_fingerprint_to_dbc.json
tests/test_cabana

@jnewb1
Copy link
Contributor

jnewb1 commented Sep 11, 2023

Ah, I usually start it from the openpilot directory
tools/cabana/cabana
Probably fine then

@deanlee
Copy link
Contributor Author

deanlee commented Sep 11, 2023

should use the applicationPath to save settings. so that the setting is always saved in the cabana directory.

@jnewb1 : fixed this issue in #29875

@deanlee deanlee force-pushed the cabana_display_warning_if_failed_to_write_settings branch 2 times, most recently from b90dc82 to ff4800f Compare September 12, 2023 06:02
@deanlee deanlee force-pushed the cabana_display_warning_if_failed_to_write_settings branch from ff4800f to 132871c Compare September 12, 2023 06:41
@deanlee deanlee marked this pull request as ready for review September 12, 2023 14:51
@adeebshihadeh adeebshihadeh merged commit f63dc51 into commaai:master Sep 12, 2023
@deanlee deanlee deleted the cabana_display_warning_if_failed_to_write_settings branch September 13, 2023 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants