-
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
Open Working Directory Menu Option #21
base: master
Are you sure you want to change the base?
Conversation
Creates an option in 'File' in the launcher and project to 'Open Backup Directory', which opens the Temp directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path.join(app.getPath('temp'), 'dragondrop') is the correct temp folder path, note path.join will use the correct platform separator no need to add a platform specific separator yourself.
menuHash['File'].push({ | ||
label: 'Open Backup Directory', | ||
click() { | ||
switch (process.platform) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason for this to be windows only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, duh. This was left over from a thought process that the location would be OS specific, but clearly it's already dynamic based on where the project is located.
desktop/main_core.js
Outdated
click() { | ||
switch (process.platform) { | ||
case 'win32': | ||
shell.showItemInFolder(path.join(app.getPath('temp'), '\\Temp')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shell.showItemInFolder(path.join(app.getPath('temp'), '\\Temp')); | |
shell.showItemInFolder(path.join(app.getPath('temp'), 'dragondrop')); |
Simplified and corrected the code according to the github comments.
Creates an option in 'File' in the launcher and project to 'Open Backup Directory', which opens the Temp directory.