-
-
Notifications
You must be signed in to change notification settings - Fork 39
Package and System Modification #232
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
base: master
Are you sure you want to change the base?
Conversation
Set the bios time as default on liveuser. Added recvspace & sendspace to sysctl
removed the packages.
Reviewer's GuideThis PR refactors the Plasma live-setup script to modularize display manager configuration, hardware-clock/timezone handling, and sysctl tuning, while also pruning unwanted packages from the plasma package lists. Sequence diagram for modularized Plasma live-setup script executionsequenceDiagram
participant Script as "plasma.sh"
participant Finalize as "finalize.sh"
participant SetUser as "setuser.sh"
participant PatchEtc as "patch_etc_files()"
participant CommunityLive as "community_setup_liveuser()"
participant CommunityAuto as "community_setup_autologin()"
participant RCConf as "update_rcconf_dm()"
participant LocalTime as "localtime()"
participant SDDM as "sddm_setup()"
participant PlasmaSet as "plasma_settings()"
participant XInit as "setup_xinit()"
participant FinalSetup as "final_setup()"
Script->>Finalize: Source finalize.sh
Script->>SetUser: Source setuser.sh
Script->>PatchEtc: Call patch_etc_files()
Script->>CommunityLive: Call community_setup_liveuser()
Script->>CommunityAuto: Call community_setup_autologin()
Script->>RCConf: Call update_rcconf_dm()
Script->>LocalTime: Call localtime()
Script->>SDDM: Call sddm_setup()
Script->>PlasmaSet: Call plasma_settings()
Script->>XInit: Call setup_xinit()
Script->>FinalSetup: Call final_setup()
Class diagram for new modular functions in plasma.shclassDiagram
class plasma_sh {
+update_rcconf_dm()
+localtime()
+sddm_setup()
+plasma_settings()
+setup_xinit()
}
plasma_sh : -rc_conf
plasma_sh : -tz_target
plasma_sh : -sddm_conf
plasma_sh : -sysctl_conf
plasma_sh --> "finalize.sh"
plasma_sh --> "setuser.sh"
plasma_sh --> patch_etc_files
plasma_sh --> community_setup_liveuser
plasma_sh --> community_setup_autologin
plasma_sh --> final_setup
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey there - I've reviewed your changes - here's some feedback:
- Consider using sysrc for /etc/rc.conf updates instead of manual sed/echo to make rc.conf changes more robust and idempotent.
- Rename the localtime() function to something more descriptive (eg. configure_timezone) to avoid colliding with built-in command names.
- Add a check or touch the sysctl.conf file before sed/echo in plasma_settings() so you don’t error out if the file doesn’t exist.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider using sysrc for /etc/rc.conf updates instead of manual sed/echo to make rc.conf changes more robust and idempotent.
- Rename the localtime() function to something more descriptive (eg. configure_timezone) to avoid colliding with built-in command names.
- Add a check or touch the sysctl.conf file before sed/echo in plasma_settings() so you don’t error out if the file doesn’t exist.
## Individual Comments
### Comment 1
<location> `desktop_config/plasma.sh:91-93` </location>
<code_context>
mkdir -p /home/${live_user}/.config
kwriteconfig5 --file /home/${live_user}/.config/kscreenlockerrc --group Daemon --key Autolock false
kwriteconfig5 --file /home/${live_user}/.config/kscreenlockerrc --group Daemon --key LockOnResume false
echo 'exec ck-launch-session startplasma-x11' >> /home/${live_user}/.xinitrc
"
-
</code_context>
<issue_to_address>
**suggestion:** Repeatedly appending to .xinitrc may result in multiple identical lines.
Check if 'exec ck-launch-session startplasma-x11' already exists in .xinitrc before appending, or consider overwriting the file to avoid duplicate entries.
```suggestion
kwriteconfig5 --file /home/${live_user}/.config/kscreenlockerrc --group Daemon --key LockOnResume false
grep -qxF 'exec ck-launch-session startplasma-x11' /home/${live_user}/.xinitrc || echo 'exec ck-launch-session startplasma-x11' >> /home/${live_user}/.xinitrc
"
```
</issue_to_address>
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Summary by Sourcery
Enable SDDM and clean up display manager configs, fix BIOS clock timezone setup, add stream buffer sysctl parameters, and remove obsolete Plasma package definitions.
Bug Fixes:
Enhancements:
Chores: