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

Launch Services like database? #5

Open
probonopd opened this issue Sep 1, 2020 · 3 comments
Open

Launch Services like database? #5

probonopd opened this issue Sep 1, 2020 · 3 comments

Comments

@probonopd
Copy link
Member

Considering FreeBSD where the package database is actually a SQLite database rather than a bunch of text files, I wonder whether we should have the file manager build up a (per-mountpoint?) Launch Services like database that could be used to, amongst other things,

  • Know where apps are that can open certain MIME types
  • Know where the most recent version of an app is

Let's do to XDG application handling what FreeBSD did to the Debian package management plain text files... out-engineer them ;-)

Further reading:
AppImageCommunity/appimaged#30

@antony-jr
Copy link

When you have a database you are simply gonna recreate what MS Windows did with their so called "Windows Registry". And now Windows is slowly moving away from this. Now MS Windows is trying to do what Linux is doing. Using simple files for config instead of a central registry.

@probonopd
Copy link
Member Author

probonopd commented Oct 22, 2020

Trust me, the Windows Registry is about the least thing I'd like to recreate ;-)

Maybe "database" is not the best word to describe it, more like a "cache" in the form of a database that would allow it to be queried way faster than searching for stuff on the filesystem each time. Things like "give me the most recent GIMP on the system" (many copies of which may be in different places) or "give me all apps that can handle JPG files".

I wouldn't call the LaunchServices database on the Mac "like the Windows Registry". For example, you normally do not edit it. It just gets built automatically from the metadata stored inside the application bundles. https://developer.apple.com/documentation/coreservices/launch_services

@probonopd
Copy link
Member Author

https://github.com/helloSystem/hello/wiki/Architecture#launch-command describes the idea a bit more fully, and https://github.com/helloSystem/launch is an initial version of the launch command (albeit without the database at the moment).

@probonopd probonopd transferred this issue from helloSystem/Filer Dec 6, 2020
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