Skip to content
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

Add YAML config flag to hide a specific folder #30

Open
duraki opened this issue Sep 2, 2023 · 5 comments
Open

Add YAML config flag to hide a specific folder #30

duraki opened this issue Sep 2, 2023 · 5 comments

Comments

@duraki
Copy link

duraki commented Sep 2, 2023

Something like would be a good addition (note the hidden flag):

    - folder: Miscellaneous
      hidden: true
      pages:
      - number: 1
        items:
        - Assistant
        - Designer
        - IDLE
        - Linguist
        - Python Launcher
        - Linguist
        - pixeltool
        - qdbusviewer
        - qml
        - qwingraph
        - TestFlight

This way, we can stuff rarely used apps in a specific folder that will be hidden from the launchpad view.

@blacktop
Copy link
Owner

blacktop commented Sep 3, 2023

Do you know if this is something that Apple actually allows to happen w/ it's launchpad app folders?

@blacktop
Copy link
Owner

blacktop commented Sep 4, 2023

I see that there is an old tool that does this by putting the hidden items on a -1 row index, but that repo has been abandoned due to apple re-indexing the DBs, so it might not be possible any more?

@blacktop
Copy link
Owner

blacktop commented Sep 8, 2023

I was able to remove apps by removing them from the apps table, but not sure if Apple would re-add them on reboot or not?

@duraki
Copy link
Author

duraki commented Sep 8, 2023

I'm not sure, but I think Apple macOS reindex them postboot. I will have to spin up my ~trashbox vm and give it a shot.

Will update ASAP insAllah

@duraki
Copy link
Author

duraki commented Sep 27, 2023

Hi @blacktop - I'm running macOS Sonoma with VirtualBuddy virtualising macOS Ventura. This is my trashbox. It seems that macOS Ventura reindexes two things:

  • Safari.app
  • Directory Other (empty)

CleanShot 2023-09-27 at 13 10 35

This is pre-reboot. This is the steps taken to execute deletion/removal of default index.

trashbox@trashboxs-Virtual-Machine ~ % cd $(getconf DARWIN_USER_DIR)/com.apple.dock.launchpad/db
trashbox@trashboxs-Virtual-Machine db % cp db db.orig.bak
trashbox@trashboxs-Virtual-Machine db % sqlite3 db
SQLite version 3.39.5 2022-10-14 20:58:05
Enter ".help" for usage hints.
sqlite> delete from apps
sqlite> .dump apps
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE apps (item_id INTEGER PRIMARY KEY, title VARCHAR, bundleid VARCHAR, storeid VARCHAR,category_id INTEGER, moddate REAL, bookmark BLOB);
COMMIT;

Post-reboot, the database now contains self-created app item:

trashbox@trashboxs-Virtual-Machine db % sqlite3 db
SQLite version 3.39.5 2022-10-14 20:58:05
Enter ".help" for usage hints.
sqlite> select * from apps;
76|Safari|com.apple.Safari||2|697765563.0|book`

The 2nd reboot is same - ie. it contains only Safari and that directory, and every other reboot seems like it. I'm not sure where exactly are directories stored in the launchpad db to experiment a bit with default values being reindexed.

Kindly.

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

No branches or pull requests

2 participants