Merge lp:~ralsina/ubuntuone-client/fix_714976 into lp:ubuntuone-client
Proposed by
Roberto Alsina
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | John O'Brien | ||||
Approved revision: | 870 | ||||
Merged at revision: | 871 | ||||
Proposed branch: | lp:~ralsina/ubuntuone-client/fix_714976 | ||||
Merge into: | lp:ubuntuone-client | ||||
Diff against target: |
51 lines (+11/-4) 2 files modified
libsyncdaemon/syncdaemon-daemon.c (+9/-2) nautilus/ubuntuone-nautilus.c (+2/-2) |
||||
To merge this branch: | bzr merge lp:~ralsina/ubuntuone-client/fix_714976 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John O'Brien (community) | Approve | ||
dobey (community) | Approve | ||
Review via email: mp+49623@code.launchpad.net |
Commit message
Fixes wrong path comparisons, so you can sync a folder named "~/Ubuntu One Music"
Description of the change
Fixes wrong path comparisons, so you can sync a folder named "~/Ubuntu One Music"
To fieldtest it, build it using these commands:
WARNING, this overwrites part of ubuntuone-
./autogen.sh --prefix=/usr
make
cd nautilus && sudo make install
cd ../libsyncdaemon && sudo make install
pkill nautilus
nautilus nautilus ~/Ubuntu\ One/Shared\ With\ Me/
Create a folder called "~/Ubuntu One Test"
Then check the context menus, the "Ubuntu One Test->Share" option should be disabled, and the "Synchronize" option, enabled.
To post a comment you must log in.
18 + } else { root_with_ slash); root_with_ slash);
19 + root_with_slash = g_build_filename (root, G_DIR_SEPARATOR_S, NULL);
20
21 + if (g_str_has_prefix (path, root_with_slash)) {
22 + g_free(
23 + return TRUE;
24 + }
25 + g_free(
26 + }
The style is a bit messed up here. Tabs vs. spaces issues maybe?