Public bug reported:

Hi,

Bogus new line is being appended to StaticHostname property on
org.freedesktop.hostname1 interface.

example output from d-feet

{u'Hostname': u'uw000953',
 u'IconName': u'',
 u'PrettyHostname': u'',
 u'StaticHostname': u'uw000953\n'}

changing line 28 in systemd.py from
    static_hostname = f.readline()
to
    static_hostname = f.readline().rstrip()

seem to fix this issue.

This issue is present in 13.04, 12.10 and 12.04  (didn't check older
versions).

BR
Szymon Janc

** Affects: ubuntu-system-service (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1134372

Title:
  newline appended to StaticHostname property

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-system-service/+bug/1134372/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to