LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2009, 02:49 AM   #1
drakeman007
Member
 
Registered: Nov 2008
Location: Panama
Distribution: Debian Lenny
Posts: 33

Rep: Reputation: 15
[SOLVED] Question about Symbolic links in linux


Hey, probably this is an easy to solve question, but im a little confused, recently i installed kompozer in my debian, when i try to make a symbolic link to my home using
Code:
ln -s /opt/kompozer-0.8a3/kompozer
the command make the link, but why when i try to run from X with double click, it shows a window what says run in terminal, display, cancel run, why it just dont open the program.... i can change the icon with a command when i make the link?

Thanks!

Last edited by drakeman007; 05-08-2009 at 11:22 PM.
 
Old 05-07-2009, 04:09 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,500

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by drakeman007 View Post
Hey, probably this is an easy to solve question, but im a little confused, recently i installed kompozer in my debian, when i try to make a symbolic link to my home using
Code:
ln -s /opt/kompozer-0.8a3/kompozer
the command make the link, but why when i try to run from X with double click, it shows a window what says run in terminal, display, cancel run, why it just dont open the program.... i can change the icon with a command when i make the link?

Thanks!
Hi

See

Code:
man ln
You seem to be missing a name for your symlink?

I. e. shouldn't it be

Code:
ln -s kompozer_link /opt/kompozer-0.8a3/kompozer
to create a symlink called "kompozer_link" in the current directory, that, when referenced, will link to "/opt/kompozer-0.8a3/kompozer" ??

EDIT: APOLOGIES! As stated below, I got it backwards...

Last edited by rylan76; 05-25-2009 at 03:13 AM.
 
Old 05-07-2009, 04:36 AM   #3
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
That should have been

Quote:
ln -s /opt/kompozer-0.8a3/kompozer kompozer_link
 
Old 05-07-2009, 07:18 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by rylan76 View Post
You seem to be missing a name for your symlink?
I. e. shouldn't it be
Code:
ln -s kompozer_link /opt/kompozer-0.8a3/kompozer
As already stated, this is backwards. But, if you run the command in the target directory, the original form is fine. In fact, I think it is the most consistent way to make a link. (Run the ln command in the directory where you want the link)

But the original question implies that the link is OK, but there is some other issue. For example, does "kompozer" have execute permissions set?
 
Old 05-08-2009, 12:16 AM   #5
drakeman007
Member
 
Registered: Nov 2008
Location: Panama
Distribution: Debian Lenny
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks to all, but i can create the link fine, the problem or the question is why when i double click it, i have to choose an option between, run in terminal, run, cancel, display, why the programa doesnt start inmediatly? like when i run it from console using ./kompozer, in that way the program opens without any dialog before, thats why i ask if theres is another different way to make the link for the program tu run it without this dialog before?

Thanks..

And yes it have execute permission.!


Thanks to all who are helping me..
 
Old 05-08-2009, 01:23 AM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Right-click link, select the "Permissions" tab from the "Properties" dialog box, check "Allow executing file as program".
 
Old 05-08-2009, 02:49 AM   #7
drakeman007
Member
 
Registered: Nov 2008
Location: Panama
Distribution: Debian Lenny
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jay73 View Post
Right-click link, select the "Permissions" tab from the "Properties" dialog box, check "Allow executing file as program".
I have that option checked, but dont get me wrong, the program opens, but i have to double click it, then click run, and then it opens, why it doesnt open with the first double click? or thats the way to open a program in linux? sorry im newbie...
 
Old 05-08-2009, 09:46 AM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I guess the expected behaviour is being overridden by nautilus. Check the nautilus Edit > preferences > Behavior tab.
 
Old 05-08-2009, 05:00 PM   #9
drakeman007
Member
 
Registered: Nov 2008
Location: Panama
Distribution: Debian Lenny
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jay73 View Post
I guess the expected behaviour is being overridden by nautilus. Check the nautilus Edit > preferences > Behavior tab.
Thanks, i can set options there, and i can set to open without the first window, but just the code, with a text editor, cant run the program itself.... when you guys anyone creates a symbolic link, with a mouse double click, opens inmediatly?

thanks.
 
Old 05-08-2009, 10:26 PM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Guys,
  • The link is fine, otherwise he couldn't click it.
  • That way to use ln is fine, man page.
  • The permissions of the symlink can't be changed ever, they are 777, only the permissions of the destination file matters which I assume are fine because otherwise he couldn't run kompozer from the menu or whatever.

So, let's concentrate on the issue, and the issue is entirely related to the way that nautilus/gnome handles the thing. I don't have nautilus so I can't test, but for example in dolphin it works without a problem. Gnome mime support has always been broken to a bigger or lesser degree in my humble opinion.

It would help here to know if it works or not for other gnome/nautilus users.

You could also try another file manager like thunar or pcmanfm, just to test even if you don't like them.
 
Old 05-08-2009, 11:21 PM   #11
drakeman007
Member
 
Registered: Nov 2008
Location: Panama
Distribution: Debian Lenny
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by i92guboj View Post
Guys,
  • The link is fine, otherwise he couldn't click it.
  • That way to use ln is fine, man page.
  • The permissions of the symlink can't be changed ever, they are 777, only the permissions of the destination file matters which I assume are fine because otherwise he couldn't run kompozer from the menu or whatever.

So, let's concentrate on the issue, and the issue is entirely related to the way that nautilus/gnome handles the thing. I don't have nautilus so I can't test, but for example in dolphin it works without a problem. Gnome mime support has always been broken to a bigger or lesser degree in my humble opinion.

It would help here to know if it works or not for other gnome/nautilus users.

You could also try another file manager like thunar or pcmanfm, just to test even if you don't like them.

Thanks very good answer, yes i think the problem is how nautilus handle the symbolic links, you are totally right, mmm im going to read more about other file managers (one of the things i like more from linux), you can try many options if you dont like one...

Thanks for that great answer man, and thanks to all the other people who answer for help me...
!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Symbolic links from linux to windows Mini Singh Linux - General 2 08-30-2007 12:55 AM
question about symbolic links supersucker Linux - Newbie 3 01-06-2006 08:27 AM
strange question regarding symbolic links and apache drisay Slackware 3 11-16-2004 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration