utsengar / HeadsDown

Auto-enable "Do not disturb" while coding or designing.
The Unlicense
18 stars 1 forks source link

Dynamic app search #2

Closed utsengar closed 4 years ago

utsengar commented 4 years ago

@adriankonkolowicz Made some minor tweaks and fixed bug there ".app" was added to UserDefault too, resulting in a bug.

Looks good?

adriankonkolowicz commented 4 years ago

LGTM, feel free to merge.

utsengar commented 4 years ago

One thing I just got a feedback for is we should should hardcode "/Applications" and use FileManager.SearchPathDirectory.applicationDirectory https://developer.apple.com/documentation/foundation/filemanager/searchpathdirectory/applicationdirectory.

So, checking how can I open NSOpenPanel with it.

adriankonkolowicz commented 4 years ago

Interesting! I wanted to do something like that. I tried to do that, setting the dialog.directoryURL = URL(string: "/Applications") Let me check