LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   how can my slackware packages add themselves to kde and gnome's menus? (http://www.linuxquestions.org/questions/slackware-14/how-can-my-slackware-packages-add-themselves-to-kde-and-gnomes-menus-136931/)

riddlebox80 01-20-2004 09:30 PM

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?

itsjustme 01-20-2004 10:31 PM

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.

nesware 01-21-2004 06:57 AM

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

riddlebox80 01-21-2004 03:06 PM

do you just add it into the .tgz when done? I dont quite understand what you mean by add it to your package?

Tinkster 01-21-2004 03:16 PM

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

nesware 01-22-2004 10:50 AM

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...

riddlebox80 01-24-2004 05:51 PM

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?

nesware 01-24-2004 06:55 PM

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...

nesware 01-24-2004 06:56 PM

i mean www.linuxpackages.net

dirstyGuy 01-24-2004 11:13 PM

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 :D, no/null redudance questions plz, plz. N dun pretend to know n fool me u have scripted practiceOfStoryFromSky with c++..


All times are GMT -5. The time now is 08:35 PM.