-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[Linux] showOpenDialog initialPath doesn't work #10297
Comments
Try using |
@sbruchmann it shows the same path and doesn't work as well. And I think because it works with the save dialog it should work with the open dialog, too. |
Ah, I misread your issue. Sorry for the inconvenience. |
Do you have the same problem? I will try it with Windows in the next days. |
Works on my machine™ My setup:
Tested with the following code sample: define(function () {
"use strict";
var AppInit = brackets.getModule("utils/AppInit");
var FileSystem = brackets.getModule("filesystem/FileSystem");
var ProjectManager = brackets.getModule("project/ProjectManager");
function main() {
FileSystem.showOpenDialog(
false,
false,
"Open a file",
ProjectManager.getProjectRoot().fullPath,
null
);
}
AppInit.appReady(main);
}); |
So, it appears to be Linux only then, right? |
Yes it is a Linux only problem! I've tested it on my Windows machine and everything works properly. |
Fixed in 1.2 -- see PR adobe/brackets-shell#496. |
@Wikunia As the fix now in the master, could you verify if the PR has fixed the problem? |
@nethip is this fix already in Brackets or onlu in brackets-shell? I updated my fork yesterday and it didn't work. |
@Wikunia . This is a fix in brackets-shell. You need to rebuild brackets-shell on Linux. As master branch is not yet ready for Linux compilation please use jasonsanjose/cef_217_linux branch to build Brackets on Linux. Here is the wiki for building brackets on Linux. https://github.com/adobe/brackets-shell/wiki/Building-Brackets-Shell |
@Wikunia I checked if this is fixed or not and it is now fixed on Linux. The current Linux installer(posted at brackets.io) does not have this change. So when we post the next Linux installer, you can expect this issue to be fixed. Currently we are struggling with fixing the hang issues when quitting Brackets on Linux(after updating to latest version of chromium). All of the fixes relating to this are tracked at this PR. adobe/brackets-shell#499. I am closing this issue. Feel free to open this, if you feel the fix is not proper. Thanks! |
When I use initialPath inside
showOpenDialog
my File Manager shows me the recently used folders and when I use it inshowSaveDialog
everything works as I expect.My initialPath variable is
ProjectManager.getProjectRoot()._path
So this is working
FileSystem.showSaveDialog(title, initialPath, "",
this isn't
FileSystem.showOpenDialog(allowMultipleSelection, chooseDirectories, title, initialPath, fileTypes,
My machine:
Linux 3.17.6
Brackets 1.1.0
The text was updated successfully, but these errors were encountered: