Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.

Commit c8bc718

Browse files
authored
fix: Update incorrect home path (#10)
1 parent 9fd2f24 commit c8bc718

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ The `THEIA IDE` requires `node v10x` for compilation. Therefore the version of n
4242

4343
IllumiDesk's setup requires `docker volume` mounts with the local host instance. Files copied to the `jovyan` home directory during the docker build stage are overriden by the files located on the host directories when running a container based on the image. Therefore `theia` is installed with a `debian package (*.deb)` with a docker multi-stage build.
4444

45+
This package assumes the `theia` command is globally available and that the user's settings are defined in the `package.json` installed with the *.deb package, which by default is placed in the `/usr/share/theia-example/app/package.json` directory.
46+
4547
## Attributions
4648

4749
- [`jupyter-theia-proxy`](https://github.com/jupyterhub/jupyter-server-proxy/tree/master/contrib/theia)

illumidesk_theia_proxy/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def _theia_command(port):
2020
if not executable:
2121
raise FileNotFoundError('Can not find theia executable in $PATH')
2222
# Create theia working directory
23-
working_dir = "${HOME}/theia"
23+
home_dir = os.environ.get('HOME') or '/home/jovyan'
24+
working_dir = f'{home_dir}/theia'
2425
if not os.path.exists(working_dir):
2526
os.makedirs(working_dir)
2627
logger.info("Created directory %s" % working_dir)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name="illumidesk-theia-proxy",
11-
version='0.1.2',
11+
version='0.1.3',
1212
url="https://github.com/illumidesk/illumidesk-theia-proxy",
1313
author="IllumiDesk Team",
1414
description="[email protected]",

0 commit comments

Comments
 (0)