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

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/interaction_interfaces.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:
1243
1243
        self.main.event_q.push('SYS_USER_DISCONNECT')
1244
1244
 
1245
1245
    @log_call(logger.debug)
 
1246
    def get_homedir(self):
 
1247
        """Return the home dir point."""
 
1248
        return self.main.get_homedir().decode('utf-8')
 
1249
 
 
1250
    @log_call(logger.debug)
1246
1251
    def get_rootdir(self):
1247
1252
        """Return the root dir/mount point."""
1248
1253
        return self.main.get_rootdir().decode('utf-8')