~mandel/ubuntuone-client/notification-center-support

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/main.py

- Provide a get_home_dir() method to get a proper home dir in unicode environments (LP: #898640).
- Handle link creation with unicode paths (LP: #891173).

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from twisted.internet import defer, reactor, task
23
23
 
24
 
from ubuntu_sso.xdg_base_directory import native_path
 
24
from ubuntu_sso.xdg_base_directory import native_path, xdg_home
25
25
from ubuntuone.syncdaemon import (
26
26
    action_queue,
27
27
    config,
249
249
        """Do the server rescan."""
250
250
        return self.vm.server_rescan()
251
251
 
 
252
    def get_homedir(self):
 
253
        """Return the home dir point."""
 
254
        return xdg_home
 
255
 
252
256
    def get_rootdir(self):
253
257
        """Return the base dir/mount point."""
254
258
        return self.root_dir