-
Notifications
You must be signed in to change notification settings - Fork 249
Closed
Description
This issue needs further investigation. I won't touch it yet because I'm in the middle of refactoring qt/app.py
while I uncovered this issue.
Reproduce:
- Select "Now" in the timeline left to show the current state ot the filesystem and not any of the snapshots.
- Double click on a folder which is a symlink.
- Nothing will happen. The folder does not open.
The relevant code in the GUI is here:
Lines 1338 to 1353 in 1003d36
def openPath(self, rel_path): | |
rel_path = os.path.join(self.path, rel_path) | |
full_path = self.sid.pathBackup(rel_path) | |
if os.path.exists(full_path) and self.sid.canOpenPath(rel_path): | |
if os.path.isdir(full_path): | |
self.path = rel_path | |
self.path_history.append(rel_path) | |
self.updateFilesView(0) | |
else: | |
# prevent backup data from being accidentally overwritten | |
# by create a temporary local copy and only open that one | |
if not isinstance(self.sid, snapshots.RootSnapshot): | |
full_path = self.tmpCopy(full_path, self.sid) | |
self.run = QDesktopServices.openUrl(QUrl('file://' + full_path)) |
In there the self.sid.canOpenPath()
does return False
.
It is not a serious bug. But I have the feeling that touching this will cause some more trouble and much more need to refactor. There might be a big workload hidden behind it. 😄
aryoda