Skip to content

Commit e7c1641

Browse files
authored
Merge pull request #189 from remlapmot/fix-no-save-workspace
Amend RStudio settings to neither save workspace on shutdown nor restore workspace on startup
2 parents 4963da2 + b7e4e70 commit e7c1641

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

rstudio/rstudio-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ fi
2626
# - Enable autosave on idle - commit changes to documents on idle
2727
# - Set file line endings as crlf if docker run from Windows
2828
if [ "$HOSTPLATFORM" = "win32" ] || [ "$HOSTPLATFORM" = "windows" ]; then
29-
echo -e "{\n\t\"line_ending_conversion\": \"windows\",\n\t\"auto_save_on_blur\": true,\n\t\"auto_save_on_idle\": \"commit\"\n}" > /etc/rstudio/rstudio-prefs.json
29+
echo -e "{\n\t\"line_ending_conversion\": \"windows\",\n\t\"auto_save_on_blur\": true,\n\t\"auto_save_on_idle\": \"commit\",\n\t\"save_workspace\": \"never\",\n\t\"load_workspace\": false\n}" > /etc/rstudio/rstudio-prefs.json
3030
else
31-
echo -e "{\n\t\"auto_save_on_blur\": true,\n\t\"auto_save_on_idle\": \"commit\"\n}" > /etc/rstudio/rstudio-prefs.json
31+
echo -e "{\n\t\"auto_save_on_blur\": true,\n\t\"auto_save_on_idle\": \"commit\",\n\t\"save_workspace\": \"never\",\n\t\"load_workspace\": false\n}" > /etc/rstudio/rstudio-prefs.json
3232
fi
3333

3434
# Start RStudio Server session in foreground

v2/pkg.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,13 @@
600600
"RemotePkgPlatform": "source",
601601
"RemoteSha": "0.0.0.9000"
602602
},
603-
"sources": ["https://opensafely-core.r-universe.dev//src/contrib/sha256-c5ba3aeba6a18c91a8beb8fb674afa16b0ad3d1a5dcae1b3e5c097c558b4c232"],
604-
"target": "src/contrib/sha256-c5ba3aeba6a18c91a8beb8fb674afa16b0ad3d1a5dcae1b3e5c097c558b4c232",
603+
"sources": ["https://opensafely-core.r-universe.dev//src/contrib/sha256-37841b42fda528bdd415d27c51cf90dc0494e568aeefb5521af8efdc07a97da8"],
604+
"target": "src/contrib/sha256-37841b42fda528bdd415d27c51cf90dc0494e568aeefb5521af8efdc07a97da8",
605605
"platform": "source",
606606
"rversion": "*",
607607
"directpkg": true,
608-
"sha256": "c5ba3aeba6a18c91a8beb8fb674afa16b0ad3d1a5dcae1b3e5c097c558b4c232",
609-
"filesize": 97340,
608+
"sha256": "37841b42fda528bdd415d27c51cf90dc0494e568aeefb5521af8efdc07a97da8",
609+
"filesize": 97356,
610610
"dep_types": ["Depends", "Imports", "LinkingTo"],
611611
"params": [],
612612
"install_args": "",

0 commit comments

Comments
 (0)