radiotray work only under "sudo.."

Issue #186 resolved
Anonymous created an issue

...if not, i see this masage (see att.)

Comments (9)

  1. Bob Chandler

    I am using Lubuntu 13.10 with 0.7.3 installed from the Ubuntu repos and having the same strange permissions issue. Can only launch radiotray from the terminal with sudo. Can't launch as a regular user. Version 0.7.2 running on Voyager 12.04 (a Xubuntu re-spin) works okay. Will post the error message later from the Lubuntu box.

  2. Bob Chandler

    Here's what happens when I try to launch radiotray from the command line without doing a sudo:

    Traceback (most recent call last): File "/usr/bin/radiotray", line 15, in <module> radiotray.main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/radiotray/", line 39, in main RadioTray() File "/usr/lib/python2.7/dist-packages/radiotray/", line 46, in init self.loadConfiguration() File "/usr/lib/python2.7/dist-packages/radiotray/", line 135, in loadConfiguration self.configLogging() File "/usr/lib/python2.7/dist-packages/radiotray/", line 171, in configLogging handler = logging.handlers.RotatingFileHandler(LOGFILE, maxBytes=2000000, backupCount=1) File "/usr/lib/python2.7/logging/", line 117, in init BaseRotatingHandler.init(self, filename, mode, encoding, delay) File "/usr/lib/python2.7/logging/", line 64, in init logging.FileHandler.init(self, filename, mode, encoding, delay) File "/usr/lib/python2.7/logging/", line 903, in init StreamHandler.init(self, self._open()) File "/usr/lib/python2.7/logging/", line 926, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/home/username/.local/share/radiotray/radiotray.log' username@computername:~$

    Sorry, when I post the output in this web forum the lines get a bit messed up

  3. Carlos Ribeiro repo owner

    From that error log I can see that you don't have permissions to write to '/home/username/.local/share/radiotray/radiotray.log'. Make sure to give read and write permissions to everything in that directory, as RT needs it load and save configs.

  4. Bob Chandler

    OK, for some reason or another the permissions on the radiotray.log file was set to "root" instead of the user. Permissions on all of the rest of the files were okay. So just did a "chown" on the command line to change the permissions to the user and it works fine now. This machine is an old Pentium IV 2.0 box that I've been converting from XP to Lubuntu. Good to know in case I run into this problem again as I can see myself converting dozens of XP boxes to various versions of GNU/Linux over the next year.

  5. Log in to comment