-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
CommandPrompt Activation #364
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
CommandPrompt Activation #364
Conversation
I added a parser and implemented the command:
!!!The crash is not fixed!!! |
@lampenlampen Would threading be a way out of the race condition? |
I'm currently trying to convert the list to a task-based approach, so we can await them. |
@lampenlampen The WIP branch for the settings view model might simplify/remove some of the list items. https://github.com/duke7553/files-uwp/tree/settings-vm |
I had a look at the branch and i basically had the same idea. You can have a look at https://github.com/lampenlampen/files-uwp/commit/496a84e2c2f0efd7e3f6f4571d97bd297a13ce01. I extracted all "drives"-related things to it's own class and added an Please leave a short answer, if you want to refactor these yourself or i can go ahead. |
Your implementation looks better than mine! For now, don't worry about my branch, as I can refactor those changes later |
@lampenlampen I probably won't have the time to make any refactors myself until Friday at the earliest, so if you can that would be excellent! |
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.
Looks great. We should now work on ironing out that race condition. @lampenlampen said he would look into it.
@duke7553 I saw that your are using "mvvmlight" and |
This sounds like a question for @yaira2 😀 |
I would check out http://www.mvvmlight.net/ |
Description
I added the "AppExecutionAlias"
files.exe
, so the app can be launched from any command prompt.In the folder
%localappdata%\Microsoft\WindowsApps
is nowfiles.exe
created, which helps #236.I also did some testing with opening files in the current directory from the cmd, but there is currently a race condition between the app startup and the
PopulateDrivesListWithLocalDisks
-method, which does not populate the list fast enough. At a normal start from the cmdline, it always crashes, in the debugger with a breakpoint not. This only occurs if files wants to show the current directory.Questions
I would love some input on the cmdline-protocoll: Which commands, ...
PS:
The code as is does not support open in a directory, but works, in that it opens files. Don't know if you want to merge this as whole or as little parts.