How can I choose a different Ubuntu One default local folder?

I would like to tell Ubuntu One to sync with '~/Public/Ubuntu One' rather than '~/Ubuntu One'. Since I'm using it on Arch Linux, I don't have any right-click option for that.

I tried to edit ~/.config/ubuntuone/syncdaemon.conf and add the line root_dir = ~/new/folder (as suggested in this thread), but the file is automatically reverted to its previous state. Also, the command u1sdtool hangs and does apparently nothing - I have to use Ctrl + C to close it. Is there another way to setup the default Ubuntu One default local folder?


Solution 1:

To change the Ubuntu One default folder (tested in Ubuntu 12.04):

  1. Open /etc/xdg/ubuntuone/syncdaemon.conf as root

    comment out the following code:

    from root_dir.default = ~/Ubuntu One

    to # root_dir.default = ~/Ubuntu One

  2. Copy /etc/xdg/ubuntuone/syncdaemon.conf

    to ~/.config/ubuntuone/syncdaemon.conf

    with user attributes

  3. Open ~/.config/ubuntuone/syncdaemon.conf as user

    change the root directory wherever you want, e.g.:

    from # root_dir.default = ~/Ubuntu One

    to root_dir.default = ~/Public/Ubuntu One

  4. logout and log back in

It's done and working (at least for me)

(ubuntu 12.04 with Gnome and Unity)

General comments:

Playing with root_dir.default in /etc/xdg/ubuntuone/syncdaemon.conf is troublesome because changes become active for all users in the same machine.

Aside soft links doesn't really change de directory.

Finally, ability to change working directory from user interface should be standard if we want to make Ubuntu more user friendly for new linux users as a way to attract users from other systems (always preaching)

Solution 2:

this is rather a comment (which i don't have the rights for yet) on fileubuntu's answer above (describing how) and hellpe's comment (of having the Ubuntu One folder reappear):

with 12.04 i managed to overcome the reappearance of the folder 'Ubuntu One' in my home-dir by

  • closing all nautilus instances (eventually showing shared folders and therefore somehow seem to keep restarting the u1sd)

plus

  • disabling the u1-sync-daemon through u1sdtool --quit

before

  • changing the root path in /etc/xdg/ubuntuone/syncdaemon.conf to one of my personal preference as described by fileubuntu.

afterwards i could remove the folder 'Ubuntu One' without having it come back ever after restarting the u1-sd through u1sdtool --start.

note that i did not want the folder 'Ubuntu One' to clutter up my /~ so i did not use the symlink variant described by BЈовић above.

Solution 3:

To change the Ubuntu One default folder (tested in Ubuntu 12.04):
Open /etc/xdg/ubuntuone/syncdaemon.conf as root and add/change the following code:
From root_dir.default = ~/Ubuntu One to root_dir = ~/new/folder, e.g. root_dir.default = ~/Online Storage/Ubuntu One. It tried to amend ~/.config/ubuntuone/syncdaemon.conf, but it gave me an error after a while.

Thanks to the post of Kleenux.