-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Fix for PopOS os_release problem #311
Conversation
Fixes issue AdnanHodzic#276
Nice! Great improvement for the PopOS users. Maybe before offering this option to the user, check if |
Absolutely agree, let's run this block only if detected distro is pop os. |
How does this look? |
Almost there, I would just do it like this:
I've tried to comment the code as review kind of thing on github, but never did that before. So I think this is a little bit easier for now. |
I too have never been able to do code revisions in pull requests, been meaning to learn. Will revise |
With this modification users are still able to continue even though the OS name was never read if they press Y. Is that intended behavior? |
dist_name will not be initialized and cause issues at |
No now your |
I was just looking at that, didn't notice it got indented. Making the change now 👍 |
Great I think we are there! Now we just wait for @AdnanHodzic to review it one last time and then he probably merge it when he is happy! I will already say thank you for your contribution to auto-cpufreq! 👍 |
Glad I could help, this tool has served me well on my new Framework laptop so I thought I'd give back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I've just spotted that we do nothing, when we chose N option. So maybe it's a good idea to actually handle it.
Did not mean to hit resolve, let me open the code real quick |
I don't really know if I did that right. But the thing is: If the user choose N. we need also nicely print abort and exit. |
Is there a clean way to do that without just adding an identical abort block? |
Seems a little dirty but it gets the job done |
Yeah I see. Not really know a nicer way of doing this at the moment. That's why I added another print message. Something like "Operation aborted by user." Would make more sense on that print maybe. |
Also fixed weird whitespace issue with backslash
That should do it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think as last change. So actually printing it's doing something after choosing "y"
Co-authored-by: bobslept <[email protected]>
Wow that was fast! Well I think it's great! Thank you very much 👍 |
Yeah now I understand how the "commit changes" works, just didn't see the indicator for a bit on my side |
Looks great, thank you for your contribution @tyleraharrison and thank you for your assistance reviewing this PR @bobslept! |
Fixes issue #276