Author Topic: One Way Link?  (Read 2305 times)

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
One Way Link?
« on: January 12, 2005, 04:21:07 pm »
I don't think this will come to anything, and I doubt that such a thing exists, but here goes...

There are many things that keep getting put in places i do not want them to go, documents .desktop entries, application entries, etc.

Is it possible to make a one way link, so that any files sent to them will end up where the link is pointing, but the link would not be readable: i.e. nothing would think that there is a file there.

e.g.1: ln -s -[one way link option] /opt/QtPalmtop/apps/Applications/calculator.desktop /opt/QtPalmtop/apps/1Pim/calculator.desktop
if i relink all packages on the sd, where the calculator is installed, or if the calculator app is updated/reinstalled, the link which would be in applications now ends up in pim. But, when opie goes looking for .desktop entries to add icons for, it finds the one in the Pim folder, but NOT the one in the applications folder.

e.g.2: ln -s -[one way link option] /root/Documents/text /dev/null
so that all of the .desktop files the text editor keeps adding get thrown into the bit bucket, never to bother me again. (i just have to remember not to save anything there- unlikely to happen anyway).

um, yeah, well thats the idea anyway...

Simon
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
One Way Link?
« Reply #1 on: January 13, 2005, 06:50:51 am »
Quote
so that all of the .desktop files the text editor keeps adding get thrown into the bit bucket, never to bother me again.

Disable the documents tab?

Quote
Is it possible to make a one way link, so that any files sent to them will end up where the link is pointing, but the link would not be readable: i.e. nothing would think that there is a file there.

I don't quite understand, but have you tried to move the calc to a different tab? But now it's showing up in the old one? I'd edit the file list (somewhere under <mnt_point>/usr/lib/ipkg/) for the package to point to the new location, then ipkg-link will place it wherever you want (though you'll have to do the same if you re-install).

I may have got the wrong end of the stick though.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
One Way Link?
« Reply #2 on: January 13, 2005, 12:43:22 pm »
Quote
Disable the documents tab?

I need some sort of documents tab (i wish it was just a file browser, but never mind), and if you disable it it is still there, which is very annoying and a total waste of space.
Unless someone knows how to get rid of the documents tab completely...

Quote
I don't quite understand, but have you tried to move the calc to a different tab? But now it's showing up in the old one? I'd edit the file list (somewhere under <mnt_point>/usr/lib/ipkg/) for the package to point to the new location, then ipkg-link will place it wherever you want (though you'll have to do the same if you re-install).

I did move it, but I do 'ipkg-link mount /mnt/card' regularly, so I moved the link on the SD to the pim folder (on the sd still) and edited the list file to point to the new file. (the list file is for the source files, not their destinations, unless you can add a second parameter or something to get it to go somewhere else). Then ipkg updated it and I was back to where I started. This may be ok for one or two packages which aren't updated very often, but I want to relocate the icons for several packages, and I definately don't want to have to move everything around everytime I upgrade them.
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

darac

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.darac.org.uk
One Way Link?
« Reply #3 on: January 26, 2005, 10:05:47 am »
You could try removing read permissions from the directory:

chmod -r /root/Documents/text

If you keep write permissions then the directory becomes a black hole. Apps can write into it (and change into it, too if you keep the eXecute bits), but can't read or list the directory.
--
SL-5500 (Collie)
OpenZaurus 3.3.5 (64/0)
Kingston 128Mb SD
TwinMOS/DabsValue 256Mb CF
Mavin MFC-M2.1 Bluetooth CF
ExtremeLimit Leather BodySuit
zThinUSB cable

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
One Way Link?
« Reply #4 on: January 27, 2005, 11:38:32 am »
Quote
  You could try removing read permissions from the directory:

chmod -r /root/Documents/text

If you keep write permissions then the directory becomes a black hole. Apps can write into it (and change into it, too if you keep the eXecute bits), but can't read or list the directory.

Yeah I tried that, but since opie is running as root it can read it anyway.
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.