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 30 Jul 2014, 03:05
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Create pet package with several apps inside
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
don570


Joined: 10 Mar 2010
Posts: 3220
Location: Ontario

PostPosted: Mon 20 Aug 2012, 19:27    Post subject:  Create pet package with several apps inside  

Barryk has made a change to petget recently so that
I had to explore a new method to make my rightclick package.

I discovered that it is possible to make a pet package with
more than one application inside. Here's the method...

1) Create a folder with appropriate name like abiword-6.0
The appropriate files structure should be inside such
as /usr , /usr/local/ etc.

2) A pinstall script must be placed inside. I suggest
Code:

#!/bin/sh

yaf-splash  -bg_gradient false  -close never -fontsize large -bg orange -fb black -text "Please wait for installation... " & PID=$!

/usr/sbin/fixmenus
 JWMVER=`jwm -v|head -n1|cut -d ' ' -f2|cut -d - -f2`
 if vercmp $JWMVER lt 574;then # change from 547 to 574.
   jwm -restart
  else
   jwm -reload
  fi
jwm -reload
kill $PID
exit 0



3) Make a temporary folder in /root

4) Drag all .desktop files in 'abiword-6.0' to temporary folder
(These are the files in /usr/share/applications/)

5) Now launch terminal and run command 'dir2pet abiword-6.0'
or whatever the name of package will be.
petget is fooled into believing that there is no desktop files,
but just before final making of pet package you should return
all .desktop files back to folder.


Note that pinstall script will reconstruct the menu when installing
the pet package. The apps should be in correct category. Check and see
if the installation is correct before posting.


Note on script: The command 'vercmp' is only installed in
recent puppies but this doesn't matter.

_____________________________________________________
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0469s ][ Queries: 12 (0.0078s) ][ GZIP on ]