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

GUI: Fix the profile deleter script #757

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ferdnyc
Copy link

@ferdnyc ferdnyc commented Mar 7, 2025

This PR fixes profile deletion in the GUI (using tuned.gtk.gui_profile_deleter), which was broken by the refactoring performed in #138.

Instead of hardcoding a path, use tuned.consts.USER_PROFILES_DIR as the location where we should expect to find profile directories that we've been asked to delete. (The alternative would be to load, and call, _locate_profile_dir() on the profile name, like the code did before the refactor. But, if it's deletable we know it'll be in the USER_PROFILES_DIR, so that's probably overkill.)

Instead of hardcoding a path, use 
`tuned.consts.USER_PROFILES_DIR` as the location
where we should expect to find profile directories
that we've been asked to delete.
Copy link
Contributor

@zacikpa zacikpa left a comment

Choose a reason for hiding this comment

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

Works well, thanks!

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