Merge lp://staging/~ralsina/ubuntuone-client/fix_712674_on_1.4 into lp://staging/ubuntuone-client/stable-1-4

Proposed by Roberto Alsina
Status: Merged
Approved by: Roman Yepishev
Approved revision: 751
Merged at revision: 748
Proposed branch: lp://staging/~ralsina/ubuntuone-client/fix_712674_on_1.4
Merge into: lp://staging/ubuntuone-client/stable-1-4
Diff against target: 86 lines (+37/-4)
1 file modified
nautilus/ubuntuone-nautilus.c (+37/-4)
To merge this branch: bzr merge lp://staging/~ralsina/ubuntuone-client/fix_712674_on_1.4
Reviewer Review Type Date Requested Status
Roman Yepishev (community) fieldtest Approve
dobey (community) Approve
Review via email: mp+49460@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-client-gnome, you may need to reinstall it later

./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.

To post a comment you must log in.
750. By Roberto Alsina

mark the bug this fixes

Revision history for this message
dobey (dobey) wrote :

54 +
55 +
56 +
57 +

85 +
86 +
87 +

What are all the extra blank lines being added for?

review: Needs Information
Revision history for this message
Roberto Alsina (ralsina) wrote :

> 54 +
> 55 +
> 56 +
> 57 +
>
> 85 +
> 86 +
> 87 +
>
> What are all the extra blank lines being added for?

No reason, I'll remove them.

751. By Roberto Alsina

remove empty lines

Revision history for this message
dobey (dobey) :
review: Approve
Revision history for this message
Roman Yepishev (rye) wrote :

Yep, no publish in shares.

review: Approve (fieldtest)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches