Running bbedit from an XQuartz-launched terminal

162 views
Skip to first unread message

Galen Tackett

unread,
May 20, 2021, 9:47:27 PM5/20/21
to BBEdit Talk
I've been using xterm a good bit recently, running it from XQuartz.

I've found that trying to use a shell command to run bbedit doesn't work from xterm, although from a Terminal.app or iTerm.app window it does.

Here's what happens
$ bbedit x.x
You must allow `bbedit` to send events to the BBEdit application.
Use `tccutil reset AppleEvents` to reset the system's permissions, and try again

But 'tccutil reset AppleEvents' makes no difference.

I suspect this is not really a bug in bbedit, because nothing shows up in System Preferences under Automation's Privacy tab. Perhaps that's because xterm isn't a proper "Mac application" and so lacks a bundle ID, etc?

Does anyone know how to make this work?

Charlie Garrison

unread,
May 20, 2021, 9:56:17 PM5/20/21
to BBEdit Talk

On 21 May 2021, at 11:41, Galen Tackett wrote:

I've found that trying to use a shell command to run bbedit doesn't work from xterm, although from a Terminal.app or iTerm.app window it does.

I know that bbedit works via ssh from another machine, so there should not be a restriction for using only Terminal or iTerm. I suggest trying to ssh to your machine and running a bbedit command, does the doc open in BBEdit or do you get an error. If you still get an error then the problem isn't related to xterm - if it does work, then I'm baffled, no idea why bbedit wouldn't work from xterm. I'm sure others here can comment.

-cng

--

Charlie Garrison                   <cha...@garrison.com.au>
Garrison Computer Services      <http://www.garrison.com.au>
PO Box 380
Tumbarumba NSW 2653  Australia

jj

unread,
May 21, 2021, 3:04:05 AM5/21/21
to BBEdit Talk
Hi Galen,

This appear to work on my setup (Catalina).

> 1) I run Apple Terminal, which works well under Catalina. 
> 2) from Apple Terminal I run xterm which activate XQuartz
> 3) Now XQuartz inherites the privileges of Apple Terminal and 
>     I can use it throughout the full Disk
> This requires to let Terminal app on and XQuartz app on, 
> but it works.

1. Launch XQuartz
2. In Terminal.app launch xterm
      % xterm
3. In xterm on XQuartz
    % bbedit "hello world"
4. BBEdit is launched.

HTH,

Jean Jourdain
Reply all
Reply to author
Forward
0 new messages