LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Lubuntu 10.10 Symbolic Link to Desktop from Directory (https://www.linuxquestions.org/questions/linux-general-1/lubuntu-10-10-symbolic-link-to-desktop-from-directory-839262/)

metallica1973 10-20-2010 08:01 AM

Lubuntu 10.10 Symbolic Link to Desktop from Directory
 
I am using Lubuntu 10.10 and have installed my application that I need. What I need is a link to the desktop that will execute the program from the /usr/share/test directory. When I execute the program I need to use "Sudo" in order to run in. So my questions is how would I add a symbolic link the desktop with the approipiate permission to run the executable. Also I need to add a custom icon the desktop. thanks

linus72 10-20-2010 08:10 AM

ah!
metal in the mornin huh bro?
whiskey-in-the-jar 'o
lol

uh...
ln -s /usr/share/test/name-of-executable /home-user-name/Desktop

however, most menu files go in /usr/share/applications
and they have link to icon

here's one I made for LiloConfig in slackware
Code:

[Desktop Entry]
Name=LiloConfig
Exec=su-to-root -X -c 'lxterminal -e /sbin/liloconfig'
Icon=/usr/share/icons/menu-System.png
Type=Application
Categories=System;
Terminal=true

so, make up a .desktop file (above is named liloconfig.desktop) and put it in /usr/share/applications or /usr/share/test, then symlink it to Desktop

if it needs root privs to open use either as above or
Exec=gksu /usr/share/test/name-of-app

does that help?

metallica1973 10-20-2010 08:26 AM

master of puppets, ride the lightning and black albums cannot be touched by these new age grung bands. They drive me crazy. I am old-school metal/nerd. Many thanks for all your help and I will give this a shot.


P.S

one more question. Does ownership of the symbolic link have to be root or of the profile from where I am trying to execute it in?

linus72 10-20-2010 08:37 AM

no doubt
old school metal
I was there buddy in the 80's
went to Monsters of Rock ride-the-lightning at Capitol center! 1988!
yeah, stuff nowadays sucks!
gimme some Dio, some Tallica, some Black Sabbath!
Ozzy!
I went to all the Ozzfests

it should be root, but maybe not....

metallica1973 10-20-2010 09:19 AM

That is the last thing in life I need to go to is the OZZ Fest before I die. I will give it a shot. many many thanks for everything. Can you believe that I attended Woodstock in Rome New York in 1999. I felt like a senior citizen. LOL

metallica1973 10-20-2010 09:47 AM

I tried everything but cannot get it to execute under ubuntu:

PHP Code:

[Desktop Entry]
Encoding=UTF-8
Version
=1.0
Type
=Application
Exec
=sudo /usr/share/test/test_scripts/test
Terminal
=true
Name
=Test
Comment
=Test network vulnerability scanner
Icon
=/usr/share/test/html/images/test_icon.png
Category
=Application

I also gave the symbolic link root privileges. ???

linus72 10-21-2010 01:22 PM

try

gksu /usr/share/test/test_scripts/test

or

su-to-root -X -c /usr/share/test/test_scripts/test

try entering the commands first in a terminal as user or root

metallica1973 10-25-2010 08:19 AM

I have tried all of that. After thinking about it. The application build is on Ubuntu 9.04 using Gnome and I am trying this on Lubuntu 10.10 using a shave down version of Gnome. I definately has to due with something with the version difference in Gnome. I am going to install just regular Ubuntu 10.10 Maverick using plain jane Gnome and see if there is a diffence. When it is all said and done I will let you know. This has been kicking my behind for a while. Thanks for the input. I will post soon!


All times are GMT -5. The time now is 06:41 PM.