Welcome to the Tiny Core Linux Wiki at tinycorelinux.net!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:creating_custom_command_icons_in_wbar [2011/05/15 00:19] – created jurwiki:creating_custom_command_icons_in_wbar [2022/09/21 17:10] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +=====How to add a folder icon to wbar=====
  
 +Sometimes you might want to open a specific folder on your PC. Such as with Dropbox - just one click and you want your Dropbox folder to be opened.
 +
 +The first thing to understand, is that you can't "just open" a folder. Folders are always opened with a file manager app, such as the built-in fluff, or a 3rd party app such as rox-filer.
 +
 +One of the most straight-forward ways to accomplish this is by adding an icon of your choice plus a calling script to the ondemand directory in /tce. So here are the necessary steps:
 +
 +1. Create a new file, name it anything such as dropboxf and write in it:
 +<code>#!/bin/sh
 +fluff /home/tc/Dropbox &
 +</code>
 +
 +Save the file in /tce/ondemand.
 +
 +2. Take any icon file of your choice in eg. png file format, and copy the icon file to /tce/ondemand. 
 +
 +3. Change the file name to be exactly the same as the script file from step 1. Rename the image file's extension to img. For example, the image file would be named dropboxf.img.
 +
 +4. Restart X (ctrl-alt-bksp, startx) to refresh wbar.
 +
 +That's all.
 +
 +The newly-created wbar icon will also be listed in OnDemand in AppsAudit, and you can blow it away by simply clicking on it.
 +
 +See also [[http://forum.tinycorelinux.net/index.php?topic=6762.0|http://forum.tinycorelinux.net/index.php?topic=6762.0]]
Print/export
QR Code
QR Code wiki:creating_custom_command_icons_in_wbar (generated for current page)