gnome-shell-extension-ddterm icon indicating copy to clipboard operation
gnome-shell-extension-ddterm copied to clipboard

Instructions for setting ddterm as external terminal (for apps like VSCode)

Open jacksongoode opened this issue 4 years ago • 2 comments

Is there an executable command to open and run from ddterm? This could be used as the prefix for editors who might open an external terminal for the user on run.

jacksongoode avatar Oct 26 '21 19:10 jacksongoode

No, there is no such command. It should not be hard to implement using D-Bus/GAction, but it has to go through the extension first (because ddterm app may not be running, and the app must be started from the extension).

amezin avatar Oct 30 '21 04:10 amezin

A while ago i added a method to the dbus interface, the implementation is a bit hacky since it's using a setting to pass the command to the application, but it's been working well so far. I was about to create a PR, but it seems many things have changed since then (rxjs introduced), so most of what's there need to be updated, unfortunately, I don't have the time to do that, in case someone else is interested https://github.com/mrf345/gnome-shell-extension-ddterm/commit/417ce69cee40220396ed9b265570f0f8a120fb8c

example: gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell/Extensions/ddterm --method com.github.amezin.ddterm.Extension.RunCommand /your/shell/script/path.sh

mrf345 avatar Aug 14 '22 20:08 mrf345

Now you can create tabs from the command line - for example: ~/.local/share/gnome-shell/extensions/[email protected]/com.github.amezin.ddterm --wait -- nano somefile.txt

amezin avatar Sep 19 '23 04:09 amezin