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

Support for more client apps #744

Open
dluc opened this issue Dec 16, 2023 · 4 comments
Open

Support for more client apps #744

dluc opened this issue Dec 16, 2023 · 4 comments

Comments

@dluc
Copy link

dluc commented Dec 16, 2023

Please allow to extend the list of client apps, or at least add more options

image

Some apps that would be great supporting:

many more here https://wiki.postgresql.org/wiki/PostgreSQL_Clients

Thanks!

@jakob
Copy link
Member

jakob commented Dec 19, 2023

It would be nice if that popup could autodetect installed PostgreSQL clients.

I don't want to be responsible for choosing which clients are supported, and which are not.

Do all those clients support the postgresql: url scheme?

@dluc
Copy link
Author

dluc commented Dec 19, 2023

I don't think they do support the scheme. What about making the list configurable?

@tbussmann
Copy link
Member

I once looked into the possibilities to support pgAdmin4. However, without support for an url handler nor command line switches, it seems impossible to tell the client application what database to connect to.

@jakob
Copy link
Member

jakob commented Dec 23, 2023

I checked the docs, and I found a pretty nice API introduced in macOS 12 that makes it easy to find apps that can handle a specific URL scheme:

import Cocoa
let appUrls = NSWorkspace.shared.urlsForApplications(toOpen: URL(string: "postgresql://localhost")!)

If PostgreSQL clients all supported the postgresql: URL scheme, that would then make it very easy to automatically add all installed apps to the popup menu.

(We would of course need to add some logic to deal with multiple copies of the same app)

Right now, Postico is the only app on my computer that supports postgresql: URLs. I think TablePlus may support the URL scheme (they are usually quick to add features to their app when I add them to Postico :), but I don't have it installed to check. DBeaver doesn't support it. I think I suggested adding an URL handler to one of the DBeaver devs a few years ago when I met them at a conference, but I never followed up on it.

Maybe we can suggest to app developers that they should add URL handlers to their apps. Without URL handlers and with no Apple Script support, it's going to be very hard to launch other apps...

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

3 participants