-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] [Linux] showOpenDialog initialPath doesn't work #9123
Comments
Try using |
|
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);
}); |
Windows 8.1 |
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. |
|
|
https://github.com/adobe/brackets-shell/wiki/Building-Brackets-Shell |
I am closing this issue. Feel free to open this, if you feel the fix is not proper. Thanks! |
Thursday Jan 01, 2015 at 21:59 GMT
Originally opened as adobe/brackets#10297
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: