Skip to content

feat(launcher): let Store-installed apps be hidden in Settings > Launcher - #289

Open
wearewatchingyouclosely wants to merge 1 commit into
CardputerZero:masterfrom
wearewatchingyouclosely:feat/store-apps-hideable
Open

wearewatchingyouclosely wants to merge 1 commit into
CardputerZero:masterfrom
wearewatchingyouclosely:feat/store-apps-hideable

Conversation

@wearewatchingyouclosely

Copy link
Copy Markdown

Why

Apps installed from the Store can't be removed from the home carousel without uninstalling them: the launcher
marks every Store-installed .desktop app as always-on, ignores its app_desktop_* switch, and leaves it out of
Settings > Launcher. Preinstalled apps and built-in pages can already be hidden. Once a few apps are installed,
the carousel gets long, and there's no way to keep an app installed but off the home screen.

What changes

  • desktop_app_loader.cpp and model/dynamic_app_registry.hpp: Store-installed apps get the same
    configurable = true, always_on = false descriptor as preinstalled ones.
  • settings/settings_launcher_model.hpp: is_launcher_settings_origin() also accepts StoreInstalled, so
    those apps appear in Settings > Launcher with a switch.
  • Tests updated to the new rule (test_settings_models.cpp, test_dynamic_app_registry.cpp, including the
    loader source contract).

What doesn't change

  • A missing switch still means shown: existing devices look exactly the same until the user hides something.
  • Protected pages (Settings, Store, CLI) stay always-on.
  • Origin detection (preinstalled vs Store) is unchanged; it's still used for ordering and the preinstalled manifest.
  • Config keys are the existing app_desktop_<file>_<fnv1a> ones.

Testing

  • sh projects/APPLaunch/tests/run_tests.sh passes.
  • On hardware: the equivalent one-line change built on launcher-v0.6.105 (applaunch 0.6.105): a Store app
    hidden via its switch disappears from the carousel after the launcher reloads, and comes back when shown again.

Context

Found while building All Apps, a Store app that lists every
launcher app, runs hidden ones and toggles their switches. Today it can hide built-ins and preinstalled apps but
has to tell users that Store apps can't be hidden.

🤖 Generated with Claude Code

…cher

- desktop_app_loader / DynamicAppRegistration: Store-installed desktop apps are
  configurable like preinstalled ones instead of always-on; a missing switch
  still means shown, so nothing changes until the user hides an app
- settings_launcher_model: list Store-installed apps in Settings > Launcher
- tests: update the settings model, registry and loader-contract expectations

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wearewatchingyouclosely

Copy link
Copy Markdown
Author

To add some context and a Chinese summary for this PR: the goal is to let apps installed from the Store be hidden from the home carousel, like preinstalled apps already can.

Today the launcher treats every Store-installed .desktop app as always-on: it ignores its app_desktop_* switch and leaves it out of Settings > Launcher. I maintain All Apps (Store submission CardputerZero/packages#1001), which lists every launcher app and lets you show or hide each one. On a stock launcher it has to tell users that Store apps can't be hidden. Once a few apps are installed, the carousel gets long, and the only way to remove an app from it is to uninstall it.

This PR is a small change that gives Store-installed apps the same configurable switch as preinstalled ones. A missing switch still means shown, so nothing changes for anyone until they hide something. Tests are updated, and I've run the same change on a CardputerZero. I'm happy to adjust it to whatever approach you prefer.


中文(机器翻译)

为本 PR 补充一些背景和中文说明:目标是让从商店安装的应用也能从主屏轮播中隐藏,就像预装应用现在已经可以做到的那样。

目前启动器把所有从商店安装的 .desktop 应用都视为"始终显示":会忽略它的 app_desktop_* 开关,也不会出现在"设置 > 启动器"中。我维护的 All Apps(商店提交 CardputerZero/packages#1001)可以列出启动器中的所有应用,并逐个显示或隐藏。但在原版启动器上,它只能告诉用户商店应用无法隐藏。安装了几个应用之后,轮播会变得很长,而唯一能把应用从中移除的办法就是卸载它。

本 PR 是一个很小的改动,让商店安装的应用与预装应用一样拥有可配置的开关。没有开关时仍然表示显示,所以在用户主动隐藏之前,任何人的使用体验都不会改变。测试已同步更新,我也在 CardputerZero 实机上运行过同样的改动。如果你们更倾向于其他实现方式,我很乐意调整。

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant