DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th October 2008
caesius caesius is offline
Port Guard
 
Join Date: May 2008
Posts: 24
Thanked 8 Times in 2 Posts
Default kde .desktop file link doesn't act like a link when opening files

Gidday, I've found a small problem with the way links are handled,

on my desktop there is a link to a HDD device mounted under /mnt/G. This works fine when I click on it on my desktop but when I am (for example) opening a file with Kaffeine, I can't click on these links on my desktop and have the "file open" dialogue follow them because they see them as actual .desktop files.

Is there a workaround? Short of creating a softlink I mean.

Cheers.
Reply With Quote
  #2   (View Single Post)  
Old 14th October 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

i think they are some sort of scripts....
do
less (some link)
Reply With Quote
  #3   (View Single Post)  
Old 14th October 2008
caesius caesius is offline
Port Guard
 
Join Date: May 2008
Posts: 24
Thanked 8 Times in 2 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
i think they are some sort of scripts....
do
less (some link)
Yep, they're a text file. With all sort of info about the icon, what they execute etc etc.

What I want is KDE apps to follow them when opening files, not try and open the .desktop file itself.
Reply With Quote
  #4   (View Single Post)  
Old 14th October 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

Use symbolic or hard links -- which will generally work in any application. The .desktop files are only of real use to programs that need such information, like application menus or desktop icons. If you are serious, perhaps trying playing with the type and file extension.


The only way a program can tell a symlink from the original file w/o examining the inode number, is probably via readlink()(2) anyway; but most programs (vim for example) will treat .desktop/.directory files as text files, not as 'shortcuts'.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Link] Runnable Userspace Meta Programs in NetBSD 5.0 s0xxx NetBSD General 1 23rd May 2009 07:05 AM
My D-Link DFE530TX ethernet adapter isnt found. Help! Quaxo OpenBSD Installation and Upgrading 15 10th February 2009 12:23 AM
D-link (DI-524) router c0mrade General software and network 3 26th January 2009 08:14 AM
Do you need hard link for PostgreSQL? Sunnz General software and network 5 26th October 2008 07:07 PM
Can I use this link for hardening FreeBSD 7 mfaridi FreeBSD Security 1 9th July 2008 07:35 AM


All times are GMT. The time now is 03:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick