I have Ubuntu 14.0.4 LTS. I have the following folder on my system:/opt/JBoss_4.0.4.GA/server/default/deployAlso I have this symbolic link to that folder on my Desktop:JBoss deploy -> /opt/JBoss_4.0.4.GA/server/default/deployWhen I double click on the link, nautilus opens a directory with this path:/home/sasan/Desktop/JBoss deployBut this is what I want:/opt/JBoss_4.0.4.GA/server/default/deployIs there anyway to create a link that acts just like a shortcut? Or is there anyway to create actual shortcut in Linux?
Is there anyway to create a link that acts just like a shortcut?
ubuntu;symlink
There is a standard for desktop entry which is specified in These pages.You can specify what action to take when you open (effectively click) that desktop item. The action can be bash commands. Or in your case:nautilus /opt/JBoss_4.0.4.GA/server/default/deployJust For the sake of completeness, Here's an example:Chrome.desktop [Desktop Entry]Name=Google ChromeExec=google-chrome-stableType=ApplicationStartupNotify=truePath=/usr/bin/Icon=/home/bibek/.local/share/icons/hicolor/32x32/Google-Chrome-Google-Chrome.icoName[C]=ChromeThis is what the shortcut for chrome looks like in my Mint Desktop. That Exec line is what actually gets executed on click event assuming the entry right after = is executable (arguments are seperated by space).