Merge lp://staging/~angeloc/unity-lens-files/fix-for-773841 into lp://staging/unity-lens-files
Proposed by
Mikkel Kamstrup Erlandsen
Status: | Superseded |
---|---|
Proposed branch: | lp://staging/~angeloc/unity-lens-files/fix-for-773841 |
Merge into: | lp://staging/unity-lens-files |
Diff against target: |
201 lines (+73/-35) 3 files modified
src/daemon.vala (+33/-15) src/folder.vala (+1/-1) src/url-checker.vala (+39/-19) |
To merge this branch: | bzr merge lp://staging/~angeloc/unity-lens-files/fix-for-773841 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michal Hruby (community) | Needs Fixing | ||
Unity Bugs | Pending | ||
Review via email: mp+95591@code.staging.launchpad.net |
This proposal has been superseded by a proposal from 2012-03-06.
Description of the change
Fixes activation of remotely mountable volumes.
I am merge proposing this on behalf of Angelo since there appears to be some LP hiccups...
To post a comment you must log in.
Nice work, thanks for the contribution!
A couple of comments:
7 private UrlChecker urls;
8 + private UrlMountChecker murls;
Wouldn't it make sense to extend the UrlChecker class to do this instead of adding yet another class that has almost the same semantics?
130 + regexes.prepend (new Regex ("\\\\.+")); +")); .+"));
131 + regexes.prepend (new Regex ("ftp://.
132 + regexes.prepend (new Regex ("ssh://.+"));
133 + regexes.prepend (new Regex ("sftp://
134 + regexes.prepend (new Regex ("smb://.+"));
135 + regexes.prepend (new Regex ("dav://.+"));
There's no need to use this many regexes - instead you can first preprocess the query by replacing \\ with smb:// (if it has \\ prefix), and then you can use a single regex "(ftp|ssh| sftp|smb| dav):// .+".