WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Adding entries to wbar  (Read 6696 times)

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Adding entries to wbar
« on: March 27, 2013, 12:48:45 PM »
Hi all

I tried to add an entry to /home/tc/.wbar, it worked but once I rebooted (did backup), I saw a quick flash
on the screen about some error and the entry was no longer there.
I rebooted again this time without doing a backup, the error is now gone but the entry is still not there.
This what I appended to the end of .wbar:

Code: [Select]
i: /path/to/an/icon.png
t: Text_to_display
c: exec /path/to/my/script

Can anyone please advise on how to add stuff to wbar?
Thanks.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11489
Re: Adding entries to wbar
« Reply #1 on: March 27, 2013, 12:54:48 PM »
Hi Paulo
Read the answer about adding menu items here:
http://forum.tinycorelinux.net/index.php/topic,15107.msg86662.html#msg86662
Adding icons to the wbar is just an extension of this technique.

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Adding entries to wbar
« Reply #2 on: March 27, 2013, 01:05:44 PM »
Thank you Rich, will give it a bash (sorry, pun intended)  :)

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Adding entries to wbar
« Reply #3 on: March 27, 2013, 01:56:22 PM »
@Rich

OK, it went well (the second time round) but now I have an entry which is non functional.
In http://forum.tinycorelinux.net/index.php/topic,15107.msg86662.html#msg86662
you mention:

Quote
To remove the  oranges~2.desktop  entry, delete the  /usr/local/share/applications/oranges~2.desktop  file, delete
the   Name=  value it created in  /home/tc/.wmx/Applications/oranges, and run  desktop.sh oranges

The problem is, I have no .wmx directory.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11489
Re: Adding entries to wbar
« Reply #4 on: March 27, 2013, 02:25:03 PM »
Hi Paulo
You do know file and directory names that begin with a  dot  are hidden. If you open a terminal and enter:
Quote
ls -a
do you see it then?

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Adding entries to wbar
« Reply #5 on: March 27, 2013, 02:28:30 PM »
Hi Rich

I know about the dot meaning hidden files.
I tried in the cli (as you suggested)
Code: [Select]
ls -a
also
Code: [Select]
ls .*  and also via rox running as root.
Nothing, the /home/tc/.wmx folder does not exist.
« Last Edit: March 27, 2013, 02:37:41 PM by Paulo »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Adding entries to wbar
« Reply #6 on: March 27, 2013, 02:39:30 PM »
.wmx/Applications is removed during backup per the /opt/.xfiletool.lst file.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11489
Re: Adding entries to wbar
« Reply #7 on: March 27, 2013, 02:46:42 PM »
Hi gerald_clark
But he's saying his  /home/tc  directory doesn't have a  .wmx  directory. Is that possible?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11489
Re: Adding entries to wbar
« Reply #8 on: March 27, 2013, 03:02:30 PM »
Hi Paulo
What does this return:
Code: [Select]
for i in desktop icons tcuser; do cat /etc/sysconfig/$i; done

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Adding entries to wbar
« Reply #9 on: March 27, 2013, 03:05:30 PM »
Hi Rich

Code: [Select]
for i in desktop icons tcuser; do cat /etc/sysconfig/$i; done
returns:

Code: [Select]
jwm
wbar
tc

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11489
Re: Adding entries to wbar
« Reply #10 on: March 27, 2013, 03:10:46 PM »
Hi Paulo
Maybe the directory has a different name under  jwm, I don't know. When you right click the desktop, do you get a
pop up menu that lists  Applications ? If so, see what this returns:
Code: [Select]
find /home/tc -name Applications
« Last Edit: March 27, 2013, 03:14:06 PM by Rich »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Adding entries to wbar
« Reply #11 on: March 27, 2013, 03:11:41 PM »
.wmx is part of the flwm window manager extension.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Adding entries to wbar
« Reply #12 on: March 27, 2013, 03:18:22 PM »
If I understand right, .wmx is a subtree containing 1 distinct shell script per each menu item for flwm (and plays no role with jwm).
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Adding entries to wbar
« Reply #13 on: March 27, 2013, 03:22:23 PM »
Hi Rich

Yes there is a pop-up menu but strangely it does not display the new entry I have made.
It runs perfectly and icon is displayed in wbar, but not listed in the pop-up menu, yet others like FireFox17 are,
which is what I modeled my entry on.

When I type this:

Code: [Select]
find /home/tc -name Applications
Nothing is returned.

In case it makes a difference, my jwm version is vsvn-456 with compiled options:
confirm icons png shape xft xinerama xpm xrender
system config: /usr/local/etc/system.jwmrc
« Last Edit: March 27, 2013, 03:25:53 PM by Paulo »

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Adding entries to wbar
« Reply #14 on: March 27, 2013, 03:34:09 PM »
By the way, just did a reboot with backup and my addition to wbar is not persistent.

EDIT:

Ignore, forgot to add it to .filetool.lst

EDIT 2:

I see that when one adds an entry to wbar, it's placed as the last item on the right hand side but after a reboot
it's placed alphabetically after any tinycore-SomeName.desktop.
« Last Edit: March 27, 2013, 04:04:50 PM by Paulo »