ospfranco / sol

MacOS launcher & command palette
MIT License
1.92k stars 87 forks source link

Search for third party system preference panes #85

Closed foss- closed 1 year ago

foss- commented 1 year ago

Feel free to close if out of scope, but being able to search for system preferences components would be a useful addition.

ospfranco commented 1 year ago

They are already there, are they not?

foss- commented 1 year ago

Correct, the remaining aspect would be third party system preference panes as exist for ChronoAgent, macFUSE or GPG Suite to name a few. (adjusting title accordingly)

ospfranco commented 1 year ago

I don't quite understand what you mean... do you want to open a third party app settings window? is that even possible?

Or do you mean searching for menu bar items? I think Raycast does this, it is cool but no idea and no time to implement it.

foss- commented 1 year ago

It is possible for apps to install a preference pane for some settings. ChronoAgent is one example: 1

ospfranco commented 1 year ago

ah ok. I don't know if it is possible to programmatically get system prefs panels, current implementation has hardcoded paths. Will leave this ticket open for now, but someone else will have to implement it.

OlshaMB commented 1 year ago

Just use some fs glob function on PreferencePanes paths. There are 3 paths:

  1. /System/Library/PreferencePanes/ - System
  2. /Library/PreferencePanes - Global
  3. /Users/{user}/Library/PreferencePanes - User

ah ok. I don't know if it is possible to programmatically get system prefs panels, current implementation has hardcoded paths. Will leave this ticket open for now, but someone else will have to implement it.

ospfranco commented 1 year ago

PRs are welcome

ospfranco commented 1 year ago

Are this third party panels still supported on Ventura? the new app seems a lot less native than previous implementations, I had to hardcode the new paths and there seems to be no new documentation.

foss- commented 1 year ago

Yes, they may look a bit weird since their old UI doesn't fit the new style but they still exist and load as expected. You could test with e.g. https://osxfuse.github.io/

ospfranco commented 1 year ago

A new version is out 1.1.104 that should list third party preference panes, only on Ventura though, let me know if it works for you

foss- commented 1 year ago

Great news.

macOS 13.0.1: verified this works for ChronoAgent.

It did not work for macFUSE or GPGPreferences (comes with GPG Suite).

1
ospfranco commented 1 year ago

I used the method suggested by @OlshaMB. No idea how macFuse is adding preference panes.

ospfranco commented 1 year ago

On the GPGPreferences github readme they say you need to manually copy the .prefPane file to ~/Librare/PreferencePanes, if you do that, it should work. As for macFuse, no idea.

ospfranco commented 1 year ago
Screenshot 2022-11-27 at 09 54 03

macFUSE is there, it only has a funny parsing due to the way I generate the names :)

foss- commented 1 year ago

Wow at macFUSE for using the most unexpected parsing. Confirming it works as intended. Thanks for adding this.