RStudio Edition : Desktop
RStudio Version : 1.2.5033 (32f8964d9d65d5000eb64df89bdbfc4d1093c3e4)
OS Version : Arch Linux with Qt 5.14
R Version : 3.6.2
Build RStudio with -DQT_QMAKE_EXECUTABLE=/usr/lib/qmake and launch it. RStudio can no longer find Qt folders Data (resources) and Translations (translations). QtWebEngineProcess looks for both folders in /share/qt instead of /usr/share/qt
After building RStudio on Arch Linux with Qt 5.14 when launching RStudio QtWebEngine complains that the paths for Data and Translations are missing. When looking for the folders it is missing /usr. This can be fixed placing a qt.conf in /usr/lib/qt/libexec [1]. The Arch Linux maintainer of qt5-webengine suggest that the messed up path is caused by RStudio [1].
[1] https://bugs.archlinux.org/task/64973?project=1&string=qt5-webengine
FWIW, we only generate qt.conf when generating package builds of RStudio (ie: bundling our own copy of Qt), and the structure is simply:
[Paths]
Prefix = ../
placed in the /usr/lib/rstudio/bin folder.
Hmm, in my packaging script I want it to use system Qt, but since the last rstudio release, I get errors like @JanMarvin.
What am I doing wrong? https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=rstudio-desktop
Could it be that I fail to say that I don’t want a “package build”? How to tell it that?
I'd like to add that this is an ongoing problem. I have scoured the codebase for why /usr/ is removed. My only guess is there is some code, somewhere, that assumes we are using a bundled Qt, and then paths out to ../../../share or something when querying for the data location. In the latest AUR release of rstudio-desktop-git, I just include a qt.conf and drop it into /usr/lib/qt/libexec; not an ideal situation, since that affects all qt apps [it does not fully work when placing it in /usr/lib/rstudio/bin, because the qtwebengine executable is elsewhere].
I really have scoured the codebase though; I have no idea how or where the qt settings are being changed from default. I am about 60% sure that it is due to use of relative pathing somewhere, and that pathing is going 'past root', like ../../../share, which will resolve to /share. If anyone has any idea where this could be (perhaps in DesktopOptions.{cpp,hpp} somewhere), please let me know. Help me help you.
Most helpful comment
I'd like to add that this is an ongoing problem. I have scoured the codebase for why /usr/ is removed. My only guess is there is some code, somewhere, that assumes we are using a bundled Qt, and then paths out to ../../../share or something when querying for the data location. In the latest AUR release of rstudio-desktop-git, I just include a qt.conf and drop it into /usr/lib/qt/libexec; not an ideal situation, since that affects all qt apps [it does not fully work when placing it in /usr/lib/rstudio/bin, because the qtwebengine executable is elsewhere].
I really have scoured the codebase though; I have no idea how or where the qt settings are being changed from default. I am about 60% sure that it is due to use of relative pathing somewhere, and that pathing is going 'past root', like ../../../share, which will resolve to /share. If anyone has any idea where this could be (perhaps in DesktopOptions.{cpp,hpp} somewhere), please let me know. Help me help you.