Skip to content

Sendcode not working with gnome-terminal on Ubuntu #166

Open
@gautam-sabnis

Description

@gautam-sabnis

Hi. I am having trouble making sendcode work on Ubuntu. I have already installed xdotool.
In the config file, I tried both "linux_terminal": "gnome-terminal-server" and "linux_terminal": "Gnome-terminal".

I get the following error in the console -

Traceback (most recent call last):
File "/opt/sublime_text/Lib/python38/sublime_plugin.py", line 1451, in run_
return self.run(**args)
File "/opt/sublime_text/Packages/Default.sublime-package/settings.py", line 122, in run
AttributeError: 'NoneType' object has no attribute 'replace'
Unable to open /home/user/.config/sublime-text/Packages/User/SendCode.sublime-settings
Traceback (most recent call last):
File "/home/user/.config/sublime-text/Packages/SendCode/send_code.py", line 29, in
sublime.set_timeout_async(lambda: sender.send_text(code))
File "/home/user/.config/sublime-text/Packages/SendCode/code_sender/sender.py", line 94, in send_text
self.send_to_terminal(cmd)
File "/home/user/.config/sublime-text/Packages/SendCode/code_sender/sender.py", line 167, in send_to_terminal
send_to_terminal(cmd)
File "/home/user/.config/sublime-text/Packages/SendCode/code_sender/terminal/init.py", line 12, in send_to_terminal
osascript(TERMINAL, cmd)
File "/home/user/.config/sublime-text/Packages/SendCode/code_sender/applescript.py", line 5, in osascript
subprocess.check_call(["osascript"] + list(args))
File "./python3.3/subprocess.py", line 542, in check_call
File "./python3.3/subprocess.py", line 523, in call
File "./python3.3/subprocess.py", line 819, in init
File "./python3.3/subprocess.py", line 1448, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'osascript'

What am I missing? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions