Discussion: System Settings, power menu and confirmations inside Puppy instead of separate apps
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start by reading the discussion in issues #46, #107, and #5 alongside the current System tab and appd behavior described here. The proposed first step is to move existing brightness, Resize Home, Eject TF-2, reboot, and power-off flows into Puppy; the direction and scope still need maintainer agreement before implementation. Done means the agreed first step works in an image tested on the device, with settings changes and confirmations behaving as specified.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi Jeremy,
First, sorry for going quiet on the PRs for a while. I got deep into the Stardew Valley and Luanti ports, Luanti most of all: besides the engine work to fit it in 512 MB, I spent a lot of time on mods and optimizations (#83). I think Luanti is mature enough now to rest for a while, so I'm back on the goodluckOS PRs.
I'd like to open a discussion about where System Settings and the system dialogs should live. In #46 you said you still wanted to think over how the user-facing graphical programs should be structured, and #107 mentions a new Settings app too, so it seems a good moment to agree on a direction before more code goes either way.
On main today, System Settings, Resize Home, Reboot, Power Off and Eject TF-2 are separate entries in the System tab, each one its own program (system-settings, resize-home, are-you-sure, a umount). Since appd never runs the launcher and an app at the same time, opening any of them closes Puppy, shows the loading screen and starts the program, and when it exits Puppy starts again and reloads the library. That is the right flow for a game, but it is a long round trip to change the brightness, and answering "No" to Power Off still costs a full launcher restart.
In my build I went the other way. System Settings is a screen inside Puppy, opened with START: there is no loading screen on the way in or out, and the launcher comes back exactly as it was. Resize Home is a page under Storage, with the card and partition sizes and a confirmation before it reboots. POWER in the launcher (and in Settings) opens a small power menu drawn over the current screen, with Display off, Restart and Shut down, the last two asking first. Every confirmation (restart, shut down, resize HOME, restore defaults, move a game to the trash) is the same floating dialog, with the safe choice selected by default. Inside a game, POWER still only turns the screen off.
To keep this from turning Puppy into one big file, its code is split in two layers. The screens (launcher, on-screen keyboard, dialogs, settings, button tester) run as a stack in one process, and everything that touches the device or a file (mixer, backlight, prefs, clock, storage) goes through small classes under src/system/, one owner for each file or sysfs node. If a separate app ever needs the same settings, that layer could become a shared library without touching the screens.
There are costs, of course. Puppy grows, and a bug in Settings takes the launcher down with it, while a separate app only crashes itself. Separate apps are also easier for other people to write and ship, like the custom apps in #103 and #107. I think both models can live together: the system things that need the launcher's state or should feel instant (settings, power, confirmations, storage) inside Puppy, and real applications (terminal tools, a music player, a gallery, custom apps) as apps run by appd. glos-setup stays its own program either way, since it runs before the launcher.
Power options over the launcher, the restart confirmation, and the same menu over System Settings:
System Settings with its sections, the Storage page and the Resize Home page:
Confirmations: resize HOME, restore default settings, and moving a game to the trash:
If you like the direction, I'd do it in small steps. The first PR would only move what main has today into Puppy, with no new options: brightness (kept across reboots, which #5 mentions is missing), Resize Home, Eject TF-2, and the power menu with the confirmation dialog in place of the Reboot and Power Off entries and are-you-sure. After that, one PR for each group of settings from my build, each one small enough to review on its own: volume and audio output, launcher view and tabs, language and font, the in-game overlay, date and time, power mode, the confirm button and the button tester. All of this is ready and tested on my console. As with my other PRs, I'd test each PR's own image on the device and say where AI was used.
And if you'd rather keep settings as separate apps, I can adapt these pages to that model instead. What do you think?
- Ngôn ngữ chính
- C++
- Star
- 54
- Fork
- 8
- Merge trung bình
- 16 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeZombie/goodluckOS
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
CodeZombie/goodluckOS#178 ·
-
TODO
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CodeZombie/goodluckOS#12 ·
-
memory space or gamesĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
CodeZombie/goodluckOS#177 · 1 bình luận ·
-
ME SALE SOFWARE DESCONOCIDOĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
CodeZombie/goodluckOS#176 ·
-
Appropriate names for gamesĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 54/100
CodeZombie/goodluckOS#174 · 1 bình luận ·
Tất cả issue của CodeZombie/goodluckOS
Issue tương tự
-
needs-format
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Niko1221/Strata#6251 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug]: NP 管理器文件编辑器里删除键无效Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
metasequoiaime/msime#11666 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DAE2 crashes on call.without.effects with a non ref.func expressionCó thể đã có người làm @stevenfontanella đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
WebAssembly/binaryen#9404 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
CVO-Org/immersive-cigs-rewrite#313 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
windows-latest (20261116.315.1) ships with incompatible MSVC (18.12) and pinned LLVM/Clang (20)Đang mởbug report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
actions/runner-images#15367 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày