WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Add shortcut to menu..?  (Read 4575 times)

Offline longtom

  • Newbie
  • *
  • Posts: 12
Add shortcut to menu..?
« on: December 25, 2009, 02:14:48 AM »
Hi,

this is am absolute beginners question and I ask for forgiveness already.

I installed gparted, thunar etc but I don't know how to add a short cut to the menu or to the toolbar at the bottom.  Could somebody please point me into the correct direction?
Regards

longtom

Offline JoXo009

  • Full Member
  • ***
  • Posts: 152
Re: Add shortcut to menu..?
« Reply #1 on: December 25, 2009, 07:50:13 AM »
I installed gparted, thunar etc but I don't know how to add a short cut to the menu or to the toolbar at the bottom.  

Dont use Xfce4 myself, but google for thunar should create some answers re short cut.

With 'toolbar at the bottom' you probably mean the wBar. Usually applications which need that feature add their icon automatically.

To create an icon of your own, you need to create a corresponding tcz extension. Will take some hours to learn. If you are interested have a look into the folders /usr/local/tce.icons and /ust/local/tce.menu and get an understanding what other applications enter there and how these entries are mirrored to the file /usr/local/tce.wbar.

Understanding the wBar principle you can create a mirror folder structure of your own pointing to your own icon and your own script which should be executed when the icon is clicked.

As TC recreates the whole /usr folder on each boot, you need to convert your mirror structure into the tcz extension needed for that recreation process.

Packing that mirror folder structure with the extension squashfs-tools-4.0.tct will result in the needed extension and moving that extension into the /mnt/hda1/tce folder will result in showing up your new icon as part of wbar.
« Last Edit: December 25, 2009, 08:08:00 AM by JoXo009 »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Add shortcut to menu..?
« Reply #2 on: December 25, 2009, 08:11:28 AM »
I installed gparted, thunar etc but I don't know how to add a short cut to the menu or to the toolbar at the bottom.  

Dont use Xfce4 myself, but google for thunar should create some answers re short cut.


Thunar just a file manager, do not manage desktop. Use full desktop environment instead of.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline longtom

  • Newbie
  • *
  • Posts: 12
Re: Add shortcut to menu..?
« Reply #3 on: December 25, 2009, 08:25:44 AM »
Yes - I understand Thunar is just a file manager.  I have used it in many a wm as file manager only.  It does work in TC as well when started from the terminal....

However - to create a shortcut seems to be a long and steep learning curve.  I'll get to it sometime.
Regards

longtom

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Add shortcut to menu..?
« Reply #4 on: December 25, 2009, 01:04:35 PM »
GParted is not included in the menu intentionally, as new users not understanding it could wipe everything from their hard drive. It needs to be run with administrator privileges. To run it, open the terminal and type:

sudo gparted

I use Xfe file manager. If you install it, it will automatically be included in the menu.

I believe Thunar was included to go with the Xfce desktop.

Many people see what is. Some people see what can be, and make a difference.

Offline longtom

  • Newbie
  • *
  • Posts: 12
Re: Add shortcut to menu..?
« Reply #5 on: December 26, 2009, 03:52:50 AM »
Yes, I am aware of the functions of gparted.  However, I would have liked it to appear somewhere in the menu.  I would even type in a password (if I would have one) to get it going.  I am aware how to strat it from the terminal.

In general I was hoping there is a somewhat easier way to add application shortcuts to the menu.  I am using icewm.  If not, than this is fine as well and is than part of the character of TC and I can take or leave it.

The blessings of choice....
Regards

longtom

Offline JoXo009

  • Full Member
  • ***
  • Posts: 152
Re: Add shortcut to menu..?
« Reply #6 on: December 26, 2009, 04:47:44 AM »
...  add application shortcuts to the menu.  I am using icewm.

In icewm it's easy to create your own menu.



It's done in the 'menu' file.

There is the general sample /usr/local/share/icewm/menu, which will be overwritten by /home/tc/.icewm/menu if existing.

When doing so there occurs the difficulty that TC uses the same steps to create the automated TC menu based on the sample in /usr/local/etc/icewm/menu.

So either you have to remaster TC changing the content of /usr/local/etc/icewm/menu.

Or you have to patch /home/tc/.icewm/menu each boot by overwriting the (new created) TC menu with your own one. This overwriting can be done by a copy command within the file /home/tc/.xsession*.

Good luck


_______
* After doing so reboot and check if .xsession is persistent. If you used backup before it can happen that your new .xsession always is overwritten by the old one. Solution: Take a new backup or use home=hda1 (+delete the home/tc line in /opt/.filetool.lst and maybe all old backup  /mnt/hda1/tce/mydata.tgz).
When using VirtualBox you may want to take a snapshot before rebooting to be on the safe side.



« Last Edit: December 26, 2009, 05:03:08 AM by JoXo009 »

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Add shortcut to menu..?
« Reply #7 on: December 26, 2009, 05:29:43 AM »
In the default mode, Tiny Core runs without requiring passwords.

It can be set up for passwords.

I suggest leaving GParted out of the menu for now, and starting it with the terminal.

You can experiment with modifying the menu and setting up passwords. Both can be done. However, it will take some time to learn all that is involved.

I don't know how much you already understand about Tiny Core. You are probably better off just learning how to do all of the common things first, and the more challenging things later.
Many people see what is. Some people see what can be, and make a difference.

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: Add shortcut to menu..?
« Reply #8 on: December 26, 2009, 08:12:50 AM »
I wrote a short wiki article describing how to create and extension with only menu items and wbar icon entries.
http://wiki.tinycorelinux.com/tiki-index.php?page=Creating+Personal+Icons

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Add shortcut to menu..?
« Reply #9 on: December 26, 2009, 09:36:14 AM »
Regarding Icewm, or any other WM extension  menu, they are made to be dynamic.  And to do that means recreating the menu upon each boot or start of X.  Sure, it could be made to leave the menu file itself in place and just recreate the extension section, but it is that extension section that folks would likely want to include their own static additions.  The best thing would be to back up your own copy that is in /usr/local/share/icewm and add your own additions so it would be copied to /home/tc/.icewm upon start of X.  I will remove the copying of it to /usr/local/etc/icewm as that is the system wide menu file, and any user logged in would get their copy in their home directory so the one in /usr/local/etc is not needed.

Offline longtom

  • Newbie
  • *
  • Posts: 12
Re: Add shortcut to menu..?
« Reply #10 on: December 26, 2009, 09:38:41 AM »
Thank you for all your tips.  I will fiddle around with it in order to get myself going...
Regards

longtom