Commit Graph

32 Commits

Author SHA1 Message Date
Connor Peet 9bbc169b62 cli: a running code tunnel/serve-web subcommands as root (#200207)
Fixes #193932
2023-12-07 03:32:36 +01:00
Martin Aeschlimann 07655f3a23 use remote cli when in remote terminal (#150372) 2022-05-25 16:21:16 +02:00
divinity76 84ecd33bbc Fix error log when launching as root on linux (#137125)
Fix error log when launching as root on linux.
2022-02-10 08:55:47 -08:00
Alexandru Dima e08e4d3fe1 Move --ms-enable-electron-run-as-node to a later location (#136786)
* Move `--ms-enable-electron-run-as-node` to a later location, which is not fatal in Electron builds that don't know it

* undo bad change
2021-11-09 15:11:12 -08:00
deepak1556 ac29daaf3b Fixes #136771: update to Electron v13.5.2 and pass --ms-enable-run-as-node together with ELECTRON_RUN_AS_NODE 2021-11-09 19:09:26 +01:00
João Moreno 38e500687d Update resources/linux/bin/code.sh
Co-authored-by: VoidNoire <18732253+VoidNoire@users.noreply.github.com>
2020-06-21 17:12:10 +02:00
João Moreno 1e06fc4859 Update resources/linux/bin/code.sh
Co-authored-by: VoidNoire <18732253+VoidNoire@users.noreply.github.com>
2020-06-21 17:11:57 +02:00
VoidNoire c7ae20b401 Make POSIX-compliant to increase portability and remove bash dependency on Linux. Fix causes of shellcheck warnings. 2020-06-14 22:40:16 +00:00
Daniel Imms 145d6bf352 Merge pull request #97527 from 9at8/fix-linux-symlinks
Add "" around $0 in Linux starting script
2020-06-11 04:46:46 -07:00
Aditya Thakral 69e491de68 Add "" around $0 in Linux starting script 2020-05-11 13:02:37 -04:00
Martin Aeschlimann c6ce623191 code-insiders.sh prompts me for WSL although I do want to start the Linux version. Fixes #96555 2020-05-07 11:55:20 +02:00
Jonas Platte c109bf77ac linux/bin/code.sh: use command -v instead of which 2019-10-08 14:02:44 +02:00
navrkald 08580a4671 Skip WLS check if env var DONT_PROMPT_WSL_INSTALL is set. 2019-09-08 13:19:51 +02:00
Martin Aeschlimann d4fba1fa26 Warn about installing VS Code in WSL 2019-04-11 09:57:12 +02:00
Benjamin Pasero 262660203e fix #41429 2018-01-12 07:27:30 +01:00
Benjamin Pasero 549cda29da 💄 2017-12-20 16:57:40 +01:00
Benjamin Pasero 4e9cd88e37 save as admin - handle case for readonly files 2017-12-14 15:50:21 +01:00
Benjamin Pasero ff9c9e5966 allow to run CLI as root when running --write-elevated-helper 2017-12-12 16:25:36 +01:00
Daniel Imms a25c3980e7 Improve wording when launching from sudo 2017-11-28 12:16:43 -08:00
Daniel Imms 289dbf77e3 Fix linux CLI sudo argument parsing
Fixes #17713
2017-01-25 12:03:59 -08:00
Tilman Vatteroth 20bbbfa6fe linux argument startup fix 2016-12-27 14:11:21 +01:00
aniljava c2935f2073 Fix to retain and pass args
The --user-data-dir check routine shifts and removes the args. This edit is to retain the original arguments and pass to executable when finally called.
See issue #15435
2016-11-14 02:52:16 -07:00
Michael Chou a17396960a Fix #14044: follow symlinks recursively in Linux launch script 2016-10-20 15:45:29 +08:00
Benjamin Pasero 6fa85223ef Electron Update 1.x (#11157)
* use electron 1.3.4

* ATOM_SHELL_INTERNAL_RUN_AS_NODE => ELECTRON_RUN_AS_NODE

* OSS input

* update electron.d.ts

* workaround for #8708

* bump oniguruma and chokidar with custom fsevents

* build with appveyor config from master

* oops, still use ELECTRON_RUN_AS_NODE

* use electron 1.3.5

* optional fsevents

* add cat.exe to workaround output issues

* use cat for tests

* remove some now obsolete ELECTRON_NO_ATTACH_CONSOLE

* also pipe output to cat for code.sh on windows

* unset ELECTRON_RUN_AS_NODE for appveyor

* fix tfs builds?

* fix build

* fix build?

* use cat only when running tests locally
2016-09-14 07:29:20 +02:00
Benjamin Pasero 0525466708 back to ATOM_SHELL_INTERNAL_RUN_AS_NODE 2016-07-08 16:12:10 +02:00
Benjamin Pasero 5d1affed4b ATOM_SHELL_INTERNAL_RUN_AS_NODE => ELECTRON_RUN_AS_NODE 2016-07-02 08:39:01 +02:00
Daniel Imms b6095e9d85 Fix opening files with spaces via CLI on Linux
Fixes #6525
2016-05-20 15:42:44 -07:00
Daniel Imms 6456f85788 Disallow running as root without --user-data-dir
This commit adds the --user-data-dir argument which allows a custom data dir
for Chromium's user data. This is useful when running as root on Linux since
the root user does not have read or write permissions for the ~/.config/Code
dir.

Part of #3068
2016-04-06 16:31:36 -07:00
Daniel Imms cd12a7e389 Include the Linux bin command in the main dir
This also changes the behavior of the bin command to find cli.js relatively,
meaning the CLI now supports non-standard install locations.
2016-04-05 14:51:03 -07:00
Joao Moreno d46c0646f2 move back to ATOM_SHELL_INTERNAL_RUN_AS_NODE 2016-02-15 11:07:22 +01:00
Joao Moreno 771257c5ab make linux deb build quality dependent 2016-02-12 15:48:47 +01:00
Joao Moreno 13f7004599 remove VSCODE_PATH from cli, move to linux 2016-02-12 14:51:20 +01:00