8000 locale especial folder problem. · Issue #5 · jake-phy/win7Menu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

locale especial folder problem. #5

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

Open
ghost opened this issue Jul 13, 2013 · 0 comments
6F68
Open

locale especial folder problem. #5

ghost opened this issue Jul 13, 2013 · 0 comments

Comments

@ghost
Copy link
ghost commented Jul 13, 2013

I venture to help as many as I like this applet. Thanks, great work. The language problem with the special folders can be fixed very easily.

use:
folderString = GLib.get_user_special_dir (folderKey);
where folderKey can be:
folderKey = GLib.UserDirectory.DIRECTORY_DOCUMENTS
folderKey = GLib.UserDirectory.DIRECTORY_DESKTOP
folderKey = Documents "GLib.UserDirectory.DIRECTORY_DOCUMENTS
folderKey = Download ": GLib.UserDirectory.DIRECTORY_DOWNLOAD
folderKey = Music ": GLib.UserDirectory.DIRECTORY_MUSIC
folderKey = Pictures ": GLib.UserDirectory.DIRECTORY_PICTURES
folderKey = Public ": GLib.UserDirectory.DIRECTORY_PUBLIC_SHARE
folderKey = Templates ": GLib.UserDirectory.DIRECTORY_TEMPLATES
folderKey = Videos ": GLib.UserDirectory.DIRECTORY_VIDEOS
to determine the name of the folder using:
getName: function (folderKey) {
let strDir = folderURL.split ("/");
return strDir [strDir.length - 1];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants
0