PDA

View Full Version : Can only run as sudo


Jedeye
July 28th, 2006, 10:33 PM
Hey first off im new and I can get it to run in a window by itself only as sudo... nothing shows up on my panel when I add it. Am I missing something? easy to follow tips are great :D

thanks!

chanders
July 28th, 2006, 10:45 PM
I am suspecting that you have permission problems in your

/usr/share/applications
/usr/share/applications/kde
/usr/local/share/applications
~/.local/share/applications

folders. I will try to check for this in the next release.

Try running

usp run-in-window

as a normal user and post your output here

Jedeye
July 28th, 2006, 11:06 PM
This is what I get
jon@dapper:~$ usp run-in-window
Traceback (most recent call last):
File "/usr/bin/usp", line 1517, in ?
menu_factory(app, None)
File "/usr/bin/usp", line 1508, in menu_factory
MenuWin(applet, iid)
File "/usr/bin/usp", line 1373, in __init__
self.mainwin = MainWindow()
File "/usr/bin/usp", line 93, in __init__
self.Todos()
File "/usr/bin/usp", line 584, in Todos
openfile = open(self.get_file_path(path), 'r')
IOError: [Errno 13] Permission denied: '/home/jon/.local/share/applications/googleearth.desktop'
jon@dapper:~$

chanders
July 28th, 2006, 11:10 PM
This is what I get
jon@dapper:~$ usp run-in-window
Traceback (most recent call last):
File "/usr/bin/usp", line 1517, in ?
menu_factory(app, None)
File "/usr/bin/usp", line 1508, in menu_factory
MenuWin(applet, iid)
File "/usr/bin/usp", line 1373, in __init__
self.mainwin = MainWindow()
File "/usr/bin/usp", line 93, in __init__
self.Todos()
File "/usr/bin/usp", line 584, in Todos
openfile = open(self.get_file_path(path), 'r')
IOError: [Errno 13] Permission denied: '/home/jon/.local/share/applications/googleearth.desktop'
jon@dapper:~$


Just as I suspected... All those files should have read permission for all users however on your system they cant be read.

What you cand do is open a terminal

sudo nautilus

Find the files and right click-> properties->permissions and make sure you have read checked for Owner, group, others
You can tell what file is giving trouble from the output above. Eg the above file giving problem was /home/jon/.local/share/applications/googleearth.desktop

Jedeye
July 29th, 2006, 12:39 PM
Thanks! Worked like a charm... this is a great project!!