Desklink possibilities

Hi guys,

I’d like to offer a little hint, esp. to new users that don’t have a BeOS history.
You can add any application, folder, query, link or document as a replicant into the Deskbar tray by entering in Terminal:

desklink {application, folder, query, link or document}

A click on the new icon opens the object. But that’s not all! You can create a context menu for it to offer other options. For example:

cd /boot/system/apps
desklink "cmd=Active window (2s):Screenshot --window --border --delay 2" "cmd=Remove replicant:desklink --remove=Screenshot" Screenshot

This adds one menu item “Active window (2s)” that calls the Screenshot app with the commandline parameters to take a screenshot of the active window, including its border, after giving you 2 seconds to quickly activate your target window.
The second command adds a menu with the commandline to remove the replicant itself again.
Cool or what!?

You'll need at least a Haiku revision of r35402 for the removal to work, as Philippe has fixed a bug in "desklink". Before, every replicant was added as "DeskButton", so the removal line would be "desklink --remove=DeskButton", which would remove all replicants added via the 'defective' old desklink.)

Very nice tip. I recall using desklink in BeOS. :slight_smile:

Hopefully you’ve put in in the manual. I haven’t checked.

I never new this was an option in BeOS.

Thanks for the great tip!

I wasn’t familiar with the replicant so I did some digging and found this. I post it for other replicant newbies:
http://www.haiku-os.org/documents/dev/replishow_a_replicable_image_viewer#attachments