LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-20-2010, 08:01 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
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
 
Old 10-20-2010, 08:10 AM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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?
 
Old 10-20-2010, 08:26 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
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?

Last edited by metallica1973; 10-20-2010 at 08:45 AM.
 
Old 10-20-2010, 08:37 AM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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....

Last edited by linus72; 10-20-2010 at 08:56 AM.
 
Old 10-20-2010, 09:19 AM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
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
 
Old 10-20-2010, 09:47 AM   #6
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
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. ???
 
Old 10-21-2010, 01:22 PM   #7
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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
 
Old 10-25-2010, 08:19 AM   #8
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot remove symbolic link to directory. martint Linux - Newbie 6 09-17-2014 08:45 PM
Making a Symbolic link to a directory on another partition anon091 Linux - Newbie 5 07-20-2009 10:10 AM
Unable to resolve new symbolic link added to /bin directory without reboot buddhahat *BSD 2 04-21-2007 03:01 PM
How to check if a parent directory is a symbolic link compnovice Linux - Newbie 11 10-06-2005 05:59 PM
directory symbolic link resolution rusti999 Linux - Software 6 08-09-2004 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration