Skip to content

Feature request: lock-screen wallpaper from the home folder (~/Pictures/...) #290

Backlog

Description

Thanks for the per-user lock-screen wallpaper (~/.config/APPLaunch/config.json → lockscreen_wallpaper, 3126011). I've been building a small wallpaper-picker app around it and have a suggestion: let that setting point at images in the user's home folder, e.g. ~/Pictures/aurora.png (the example in lockscreen_wallpaper.hpp).

What I see

The launcher's LVGL has one POSIX drive (A, also the default) with LV_FS_POSIX_PATH="/usr/share/APPLaunch/", and lv_fs_posix.c prefixes that root to every path. So a configured /home/pi/Pictures/aurora.png is opened as /usr/share/APPLaunch//home/pi/Pictures/aurora.png. The is_readable check passes (it uses the native path), the decode then fails, and the lock screen falls back to the packaged image.

I confirmed the LVGL side on a CardputerZero running applaunch 0.6.111 (a local build that reads the same key): a plain /home/pi/... path falls back to the stock image, and the same file written as /../../../../../../home/pi/... (which climbs back out of the drive root) loads fine. I haven't run master itself; this is from reading resolve_path() and prepare_lockscreen_background().

Possible approaches

  • Convert the resolved native path before decoding, e.g. map it to a path relative to LV_FS_POSIX_PATH, or prefix enough ../ to leave it.
  • Register a second LVGL drive rooted at / (e.g. H: or L: with LV_FS_POSIX_PATH empty) and use it for user-supplied images.
  • Or document that the image must live under /usr/share/APPLaunch/. That needs root, though, so a per-user setting would be less useful.

Happy to test a build on the device. For now my app writes the /../../../../../../home/... form, which works with today's LVGL, but a supported way would be more robust.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions