Merge lp://staging/~ralsina/ubuntuone-client/fix_712674 into lp://staging/ubuntuone-client
Status: | Merged |
---|---|
Approved by: | Natalia Bidart |
Approved revision: | 867 |
Merged at revision: | 859 |
Proposed branch: | lp://staging/~ralsina/ubuntuone-client/fix_712674 |
Merge into: | lp://staging/ubuntuone-client |
Diff against target: |
102 lines (+42/-3) 3 files modified
nautilus/context-menu.c (+6/-3) nautilus/ubuntuone-nautilus.h (+1/-0) nautilus/utils.c (+35/-0) |
To merge this branch: | bzr merge lp://staging/~ralsina/ubuntuone-client/fix_712674 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Roman Yepishev (community) | fieldtest | Approve | |
dobey (community) | Approve | ||
Review via email: mp+49332@code.staging.launchpad.net |
Commit message
Don't offer the "Publish" option in the context menu for files/folders that are being shared to the user, because it's not supported.
Description of the change
Adds a utility function to determine if a file or directory is inside a share, and uses that to modify the context menu so you can't try to publish those files/directories.
To fieldtest it, build it using these commands:
WARNING, this overwrites part of ubuntuone-
./autogen.sh
./configure --prefix=/usr
make
cd nautilus && sudo make install
pkill nautilus
nautilus nautilus ~/Ubuntu\ One/Shared\ With\ Me/
Then check the context menus, the "Ubuntu One->Publish" option should be disabled.
Check also in a subdirectory, with folders and files, and that the Publish option is enabled for contents outside the shares.
grrr. "Check also in a subdirectory, with folders and files, and that the Publish option is enabled for contents outside the shares."