about summary refs log tree commit diff
path: root/pkgs/applications/editors/rstudio/fix-resources-path.patch
blob: 24f8b3cb51b9d06d008cb60ff4bb95e8d8df5f4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/src/cpp/desktop/DesktopOptions.cpp
+++ b/src/cpp/desktop/DesktopOptions.cpp
@@ -499,15 +499,9 @@
 {
    if (resourcesPath_.isEmpty())
    {
-#ifdef RSTUDIO_PACKAGE_BUILD
       // release configuration: the 'resources' folder is
       // part of the supporting files folder
-      resourcesPath_ = supportingFilePath().completePath("resources");
-#else
-      // developer configuration: the 'resources' folder is
-      // a sibling of the RStudio executable
-      resourcesPath_ = scriptsPath().completePath("resources");
-#endif
+      resourcesPath_ = supportingFilePath().completePath("resources");
    }

    return resourcesPath_;