Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 22:22
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
In search of consistent menu generation
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Author Message
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Wed 10 Aug 2005, 00:08    Post subject:  

Quote:
rarsa wrote:
5. Dynamic menu refresh program for Window Managers


Not needed for the main WM's as I said. It IS implemented for the most important one's, we just have to activate it. That is the winning point for me.


Great! one done, a few more to go!

Quote:
Quite unlikely they exist (all I know are WM-specific).

Wrong! That's the beauty of using standards. There are a few, There is one in particular that seems to be favored by the major distros xdg-menu.

So maybe two done? two less to go?

Woow, we are fast!... No, not so... xdg-menu is a perl script, so we may have to either translate it to puppyfy it or just take the best ideas and start from scratch, or look for another one. (that's the kind of investigation I was talking about)

Quote:
If you are ready to go, I will not block you. But before you start developing, we should fix the specs.
When I said I'll start right away I meant of course writing the wish list. Once we prioritize the wish list we can actually have the specs for each one as we require them.
Back to top
View user's profile Send private message Visit poster's website 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Wed 10 Aug 2005, 00:59    Post subject:  

My idea for a solution is to use the fvwm95 or jwm menu as a template and have a script that parses the 'template menu' to generate the other wm menus. This script would also be able to add and delete menus for any of the wm it supports. This script can be a combination awk/sh script which should help to keep it small.

When we want to add a support for a new wm, we would add a template for that wm to the 'wm_menu' script which would 'teach' it how to generate menus for the new wm.

Maybe applying awk and shell scripts to the 'filesystem view' instead of perl should help to keep size down.
Back to top
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Thu 25 Aug 2005, 23:39    Post subject:  

Nathan F wrote:
I have made a couple of dotpups that add menu entries automatically.


I tried to use the code from your Dillo dotpup building better dotpups from 08Jun2005 to create a thingamablog dotpup as follows:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh

# installs thingamablog and registers with pupget
# dotpup made August 2005 by David Colburn using code by Nathan Fisher

# this script automatically runs after the dotpup file is unzipped
# it can rm, mv, cp files and dirs
# it can ln or rm symlinks
# it can run programs

# unzip the files using absolute paths
# paths relative to $HOME might be better

tar -xzP --no-same-owner -f dotpup.tar.gz

# registering with pupget
# dillo_patched.files & dillo_patched.keyword are included in tarball

# I commented out the next two lines because I didn't understand what it was doing!

# echo '"dillo_patched" "dillo_patched: extended version of dillo" on "extended version of dillo" \' >> /root/.packages/alienpackages.txt
# sleep 1

# this part of the script will register thingamablog in the fvwm95, jwm, and icewm menus

### register in the fvwm95 menu
# entry is placed just above smm
FVWM95RC="/root/.fvwm95rc"
if [ -f $FVWM95RC ] ; then
# this option is used to prevent the entry from going in more than once
grep "/usr/local/bin/thingamablog" $FVWM95RC
if [ $? -ne 0 ] ;then
cp -f $FVWM95RC /tmp/DOTfvwm95.thingamablog.backup
EDITTEXT="s/^\(.\+Exec smm\)/+ \"thingamablog javablogapp%thingamablog.xpm%\" Exec exec \/usr\/local\/bin\/thingamablog\n\1/"
sed -e "$EDITTEXT" $FVWM95RC >/tmp/thingamabloginstall.tmp
mv -f /tmp/thingamabloginstall.tmp $FVWM95RC
sleep 1
fi
fi

### register in the jwm menu
# entry is just above smm
JWMRC="/root/.jwmrc"
if [ -f $JWMRC ] ; then
# this option is used to prevent the entry from going in more than once
grep "/usr/loca/bin/thingamablog" $JWMRC
if [ $? -ne 0 ] ;then
cp -f $JWMRC /tmp/DOTjwm.thingamablog.backup
EDITTEXT="s/^\(.\+Program label=\"SMM email prefilter.\+$\)/<Program label=\"thingamablog javablogapp\" icon=\"thingamablog.xpm\">exec \/usr\/local\/bin\/thingamablog<\/Program>\n\1/"
sed -e "$EDITTEXT" $JWMRC >/tmp/thingamabloginstall.tmp
mv -f /tmp/thingamabloginstall.tmp $JWMRC
sleep 1
fi
fi

### register in the icewm menu
# entered just above smm
ICEWMMENU="/root/.icewm/menu"
if [ -f $ICEWMMENU ] ; then
# this option is used to prevent the entry from going in more than once
grep "/usr/local/bin/thingamablog" $ICEWMMENU
if [ $? -ne 0 ] ;then
cp -f $ICEWMMENU /tmp/icewmmenu.thingamablog.backup
EDITTEXT="s/^\(.\+prog \"SMM email prefilter.\+$\)/\tprog \"thingamablog javablogapp\" thingamablog \/usr\/local\/bin\/thingamablog\n\1/"
sed -e "$EDITTEXT" $ICEWMMENU >/tmp/thingamabloginstall.tmp
mv -f /tmp/thingamabloginstall.tmp $ICEWMMENU
fi
fi

# opening thingamablog

/usr/local/bin/thingamablog
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Then in rxtv I performed the following steps:

# cd /root/thing
# ls
dotpup.sh thingamablog-1.0.2
# cd thingamablog-1.0.2
# ls
README.txt lib templates
dictionaries license.txt thingamablog.jar
# md5sum dotpup.sh *.* > md5sum.txt
# rm -f thingamablog.pup
# zip -9 thingamablog.pup dotpup.sh *.* md5sum.txt
updating: dotpup.sh (deflated 65%)
updating: README.txt (deflated 48%)
updating: license.txt (deflated 62%)
updating: md5sum.txt (deflated 33%)
updating: thingamablog.jar (deflated 12%)

I then opened rox went to ~/thing/thingamablog-1.0.2 and clicked on thingamablog.pup and ran it.

Nothing seems to have happened that I can identify and there were no error messages.

What hath I wrought?

Thanks! doc

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sat 22 Oct 2005, 18:40    Post subject:  

Apparently this thread lost steam very quickly. Good news are. I've revived it.
http://www.murga.org/~puppy/viewtopic.php?t=2956&highlight=

There are some tasks that require your help.

I asume that if you were following this thread is because you care for a solution.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0645s ][ Queries: 12 (0.0089s) ][ GZIP on ]