You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RStudio Edition : Desktop
RStudio Version : 1.3.959
OS Version : Win 10 v2004 (19041.329)
R Version : 4.0.2
Steps to reproduce the problem
Create a windows shortcut (.lnk file) in the default working directory. The shortcut points to a folder containing R projects.
In RStudio, File | Open Project. R opens a file browser window in the default working directory.
Double click on the shortcut
Error appears
Describe the problem in detail/the behaviour you expected
I use a number shortcuts in my default working directory and Documents folder to redirect apps opening/saving files to various locations. In other windows apps, double-clicking on these links when opening files moves the file browser window directly to the folder in the shortcut.
RStudio is not recognising the shortcut as a link, but is instead trying to open the .lnk file as a project and failing.
Closely-related bug, do File / Open File... instead of Open Project, double-click on shortcut, and it opens a File Explorer window with the shortcut destination instead of following it in-place.
It looks like Qt also interprets this flag on Windows to mean "don't resolve shortcuts". Since we do want that behavior on Windows, we probably need to scope that check to not-Windows.
@M3IT, thanks again for finding and reporting this issue.
We have a fix in place in our latest Daily build of the upcoming 1.4 release of RStudio (available HERE). If you get the chance will you let us know if the issue is resolved for you in that build?
Activity
gtritchie commentedon Jul 13, 2020
Reproduces with 1.3.1056, and also with 1.2.5033.
Works as expected with 1.1.463.
Closely-related bug, do File / Open File... instead of Open Project, double-click on shortcut, and it opens a File Explorer window with the shortcut destination instead of following it in-place.
kevinushey commentedon Jul 13, 2020
Might be caused by this:
rstudio/src/cpp/desktop/DesktopGwtCallback.cpp
Lines 263 to 267 in de0b176
It looks like Qt also interprets this flag on Windows to mean "don't resolve shortcuts". Since we do want that behavior on Windows, we probably need to scope that check to not-Windows.
kevinushey commentedon Jul 13, 2020
From https://code.woboq.org/qt5/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp.html#993:
so there's a pretty good chance this is indeed the cause.
kevinushey commentedon Jul 13, 2020
Marking as v1.4 just because the associated fix should be simple.
gtritchie commentedon Jul 13, 2020
#2476 prompted addition of this code back in 1.2
R-Hannibal commentedon Aug 27, 2020
@M3IT, thanks again for finding and reporting this issue.
We have a fix in place in our latest Daily build of the upcoming 1.4 release of RStudio (available HERE). If you get the chance will you let us know if the issue is resolved for you in that build?
M3IT commentedon Aug 28, 2020
@R-Hannibal, it is resolved in the linked version.
Follow Windows .lnk shortcuts in the Files pane and show a shortcut i…