Sample Header Ad - 728x90

How to conveniently restart pgAdmin 4?

1 vote
1 answer
13333 views
I have pgAdmin on my dock, and can open it when the process isn't already running (ie. after a restart, or if I manually kill it). If I open pgAdmin, close the window, then later try to open it from the dock, the app doesn't respond. This dock behavior is similar to *MySQL Workbench*, **except** that *MySQL* has the *"running process indicator"* (little circle on dock below the icon), while pgAdmin **does not**, which means that right clicking on the pgAdmin icon does not give me the option to quit. I tried using a bash function, which for MySQL would look like this: killall MySQLWorkbench && open /Applications/MySQLWorkbench.app This works fine for *MySQL Workbench*, but isn't necessary since I can restart it from the dock. For some reason, with pgAdmin, the process doesn't get killed, so the app never opens: >> killall pgAdmin\ 4 No matching processes were found The app is clearly visible in Activity Monitor with the name **pgAdmin 4** The only solution I have currently is to manually kill the process from Activity Monitor, but this is quite redundant. >How can I *conveniently* restart **pgAdmin 4**? I would prefer a solution that allows me to restart it from the dock, but a bash script would also suffice. Software: - *pgAdmin 4* : **4.17** - *macOS Catalina* : **10.15**
Asked by Lord Elrond (187 rep)
Feb 5, 2020, 08:15 PM
Last activity: Feb 6, 2020, 10:18 PM