View Full Version : code/code-oss do not take optional arguments

2021-09-04, 10:15
When using code or code-oss to open a file or a directory, it instead opens an empty editor window.
This is because we are missing optional parameters/arguments.

We must change the following line inside /usr/bin/code from this:
exec /usr/lib/code-oss/code-oss --no-sandbox --unity-launch

To this:
exec /usr/lib/code-oss/code-oss --no-sandbox --unity-launch $@

Note: It appears that after every apt upgrade the file somehow gets restored to its
default contents and I must modify it manually to get it working again.