Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I made a link on my Desktop to the launcher file "Compiz" in /usr/share/applications/. When I try to execute it I get:

"The application launcher "Link to compiz.desktop" has not been marked as trusted. If you do not know the source of this file, launching it may be unsafe."

So my question is how to make such a launcher on my Desktop?

Otherwise, what kind of file are these [Desktop Entry] files and how can they be executed (by double clicking on them) if they have permissions such as:

-rw-r--r-- 1 root root 396 2010-12-17 15:23 compiz.desktop

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

As a security policy you can't "execute" .desktop files from nautilus unless they have +x (execute permission). Because you have created a symbolick link you must set the +x on the original desktop file, open a terminal and execute:

sudo chmod a+x /usr/share/applications/compiz.desktop

Please note that the +x maybe lost if the compiz package get's updated, it's probably a better idea to copy the .desktop file and set the +x on your copy.

share|improve this answer
    
Thank you. Anyway, you say you can't "execute" a .desktop file unless it has the x permission, but the original one had -rw-r--r-- and I could execute it by double clicking on it; why is it so? –  Gonzalo Jan 11 '11 at 4:13
    
Eventually this security policy only applies to Desktop items. –  João Pinto Jan 11 '11 at 11:08
add comment

Do you have a reason to use a link to /usr/share/applications/compiz.desktop?
If you simply copy it to your Desktop you will be able to Mark as Trusted :

alt text

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.