LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-20-2004, 09:30 PM   #1
riddlebox80
CL volunteer
 
Registered: Jul 2002
Location: illinois
Distribution: Collegelinux and Libranet
Posts: 105

Rep: Reputation: 15
how can my slackware packages add themselves to kde and gnome's menus?


I have been making my own slackware packages which are working great but the one problem I am having is that I have manually add my packages to my kde menu, how could I have that happen automatically when I install it with installpkg?
 
Old 01-20-2004, 10:31 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Looks like you'll need to write a script to take care of that sort of thing, eh?
--------------------------------
build my own package

[start script]
installpkg
write to kde menu
[end script]
--------------------------------

or somesuch...

Sorry, I'm not a scripting guy yet.
 
Old 01-21-2004, 06:57 AM   #3
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
GNOME: somewhere in the /usr/share dir there's a whole bunch a files with .desktop as extension
try this
# locate \.desktop | grep gnome
check those files... they keep the info for the menu... like what program to run and the icon file...
make one.. add it to you slackware package..

KDE: something similar... look in /opt dir... like /opt/kde/share/applnk/System/Terminal/procinfo.desktop
 
Old 01-21-2004, 03:06 PM   #4
riddlebox80
CL volunteer
 
Registered: Jul 2002
Location: illinois
Distribution: Collegelinux and Libranet
Posts: 105

Original Poster
Rep: Reputation: 15
do you just add it into the .tgz when done? I dont quite understand what you mean by add it to your package?
 
Old 01-21-2004, 03:16 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
As for KDE it's a piece of pie :)

Once you have it installed, and added it
to the appropriate submenu, just add the
file
/opt/kde/share/applnk/<menucategory>/<appname>.dekstop
to your tgz :}


Cheers,
Tink
 
Old 01-22-2004, 10:50 AM   #6
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
yeah.. you just add it to the tgz file...
you know how to make a slackware package?
if you do, in the package root dir create
opt/kde/share/applnk/<menucategory>/<appname>.dekstop
usr/share/gnome/apps/<menucategory>/<appname>.dekstop

and run makepkg...
 
Old 01-24-2004, 05:51 PM   #7
riddlebox80
CL volunteer
 
Registered: Jul 2002
Location: illinois
Distribution: Collegelinux and Libranet
Posts: 105

Original Poster
Rep: Reputation: 15
nesware:
I was reading in the howto on linuxpackages.net, about dealing with dependencies, and it says you can build the dependencies into the package, but it doesnt tell you how to include them do you know? Or does anyone?
 
Old 01-24-2004, 06:55 PM   #8
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
in your install directory you need a file named slack-required
from these commands on a random package file
Code:
nes@nes [/usr/local/src> tar tzf gtkmm-2.2.8-i686-1.tgz
...
install/slack-required
nes@nes [/usr/local/src> tar xzf gtkmm-2.2.8-i686-1.tgz install/slack-required
nes@nes [/usr/local/src> cat install/slack-required 
libsigc++-1.2.5
nes@nes [/usr/local/src>
but you need to read quite some docs for this... or maybe ask the writer of this tgz file (got it from www.linuxpackages.com) .. cos i don't know more than this about it...
 
Old 01-24-2004, 06:56 PM   #9
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
i mean www.linuxpackages.net
 
Old 01-24-2004, 11:13 PM   #10
dirstyGuy
Member
 
Registered: Jan 2004
Posts: 67

Rep: Reputation: 15
Wut about do a (many many) simulation of installation b4 u really install the package ?
I think installpkg have an option for it, then just link it to a file, for checking it will do. It could have total different approach than supposed.

And the real installation is installpkg pkg.tgz, well script edition is 10% of the work, but the teory of validation through simulation is the core. Especially if u aren't sure which special dependencies is they key for which all ur scripting work will adjust to.

For the fist test it will be nice to try to create a package that can handelt static dependency. The dynamic dependencies is the next step of the validation work. I wish u can imaging wut it is all about, as I don't makeredudance of wut I posted.

---
Quote in the middle of tunnel: sampling.., extract dep, apply ago.., are possibly avaiable on xyz.sky, tell me if u can resolve *.sky am not expert on DNS , no/null redudance questions plz, plz. N dun pretend to know n fool me u have scripted practiceOfStoryFromSky with c++..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome's background on KDE... seelk SUSE / openSUSE 5 03-14-2005 08:35 PM
Customizing Slackware KDE Packages deadjoebob Slackware 1 08-10-2004 03:25 AM
KDE Howto edit / add to menus bpasdar Linux - Software 6 05-03-2004 05:18 PM
Fedora KDE - How to add items to menus bpasdar Linux - Networking 1 05-02-2004 01:44 PM
Mandrake 9.2 lost all programs after trying to add more packages from KDE. rusty_blade Mandriva 5 03-31-2004 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration