keithfancher/todo-indicator

Can only run as sudo in Ubuntu 12.04

Closed this issue · 5 comments

I installed the indicator from the webup8 ppa
[CODE]
sudo add-apt-repository ppa:nilarimogard/webupd8
[/CODE]

I can only get the indicator to work if I run it as sudo
(and then your cool icon is replaced by a generic icon)

Since posting this I have uninstalled the PPA version and installed following the instructions here from a cloned git directory. Unfortunately I still have the problem. The indicator only appears if I run the python script as sudo.

Hey, thanks for filing this! I'm embarrassed to say I didn't even know my app was included in that PPA...

Can you tell me what the error is when you run it as a non-sudo user?

Oh, and as a side note -- as a temporary fix for the icon issue, you can likely just install "Getting Things Gnome", whose icon I am shamelessly using:

sudo apt-get install gtg

You don't actually have to do anything with GTG... just need the icon :D

EDIT: I just uploaded the light and dark panel icons to the repo:

https://raw.githubusercontent.com/keithfancher/Todo-Indicator/master/panel-icon-light.svg
https://raw.githubusercontent.com/keithfancher/Todo-Indicator/master/panel-icon-dark.svg

Feel free to grab those (you might have to right-click and "save as" if your browser wants to open them as text) then change the image path in the script.

Actually I didn't get an error when I ran the indicator as a normal user. Just nothing at all seemed to happen. The terminal would blink a few times then nothing more.
If I ran todo-indicator as sudo then it worked as it should minus a generic icon.
So I edited my sudoers file to run the indicator as sudo without a password.
I also edited to todo-indicator python file to use a todo.txt png I had as the icon.

Then today I thought I'd test to see if I could get an error message when running as a normal user. To my surprise it worked as it should. Just to make sure I disabled the startup program that ran the indicator as sudo and enabled a startup command to run the indicator as a normal user then I restarted the computer.

I worked as it should.
This leads me to believe that it was working all the time, it's just that it couldn't find an icon to display so I thought that it was not working.

In any case, thanks for the cool indicator (and the links to the graphics)

Cool, good news!

Just FYI, I'm planning to push an update at some point in the next day or two that actually has a proper install, including both the light and dark panel icons. I had never bothered to do that previously because I assumed I was the only one using the thing!

In any case, should solve a lot of the problems people have been having.