Closed Woomymy closed 11 months ago
Goes without saying that all the changes where tested and shouldn't cause any problems, but some supplementary testing wouldn't hurt (it works... on my machine :))
I'm currently in a trip for some days so I won't be able to check it for a while, but I would like to thank you for this PR.
I never expected anyone to contribute to this repo, so this is greatly appreciated.
No problem, enjoy your trip !
Hello, I just reviewed the changes.
They are wonderful, but I just have few minor notes:
make
and gettext
need to be installed for the make install
command to work.Other than that, everything else is great, and I really appreciate your help for improving this extension. Thank you very much.
The three issues should be addressed now, thanks
All right, just final change, can you add valign: center;
to the reset button.
Thanks.
Looks a lot better now, thanks !
Ok, so I uploaded the updated extension to extensions.gnome.org, and it was rejected, with the following message:
You cannot create instances in global scope which is the same as init:
- line 6 optionsUtils.js
- line 14 prefs.js
Too much for global scope (line 14 optionsUtils.js): https://gjs.guide/extensions/review-guidelines/review-guidelines.html#only-use-init-for-initialization
and another thing, I noticed that when pkexec mode is enabled, the extension sends a success notification even before the user enters the password, which doesn't make sense from a user perspective, so is it possible to make it so that notifications are only sent after the user enters the correct password? I tried to do that before but I wasn't able to find a way to do it, so do you know how something like that can be done?
If not possible then I think it's better to just disable notifications whenever pkexec is enabled like before, and make it so that the settings page disables the notifications switch when pkexec is enabled.
Can you handle these two changes (rejection, and notifications)? I know I've already asked too much, so if you don't want it's ok. Hopefully these will be the last changes to this PR.
Thanks.
Sorry, took me some time to remember I had to fix it, does it look fine now?
Looks good to me. I'll send it for review at gnome.extensions now.
Thanks !
Rejected with this comment:
Also null out
extensionSettings
on destroy (line 26 optionsUtils.js).
I assume this should be the final issue, so I'll merge this PR and then I'll fix the issue.
Thanks for your great work! You implemented all the stuff I wasn't able to from the Issues and more.
Nice, thanks !
In some languages the conjugation looks ugly or not understandable if there is no separate strings for different events. Could you please add stand-alone event messages for the notification messages?
This PR is focused on 3 features:
pkexec
wrapper to write ideapad_laptop sysfs nodes (#7)Some other (mostly dev-related) changes were made:
.gitignore
file was added to prevent pushing unwanted files on GitHubinstall
)make install
replaces theinstall.sh
script/sys
path of thee ideapad_acpi device, which shouldn't be used for now, but can be helpful in the future.Tell me if you have any suggestion / request of enhancement I can make to this PR (if you want to know more about the modifications, look at the commit descriptions)
Thanks for your work on this extension, Woomy.