/srv/irclogs.ubuntu.com/2007/11/08/#ubuntu-devel.txt

crimsunsiretart: apologies, I've had an admin clear it00:08
aquariusHow does Add/Remove Programs know where on the menus an application has just been installed? Is it just watching the .desktop files cache?00:27
aquarius(not sure if this counts as an "application development *on* Ubuntu" question...)00:28
pwnguinaquarius: i dont think it does. it knows whats installed and somehow knows where they usually go00:31
pwnguinmaybe debtags, maybe from scanning the .desktops from the packages00:31
IntuitiveNippleThere's a .menu file for Gnome00:34
aquariusaha, gnome-app-install is Python. that makes my life easier :)00:37
Fujitsuaquarius: gnome-app-install gets all of its information from .desktops. That's where it gets the list of applications, so it probably works out the path from there too.00:38
aquariusah. gnome-app-install has a pre-existing cache of .desktop files for apps that aren't installed. :(00:46
Fujitsuaquarius: How else would it know they existed?00:47
aquariusFujitsu: yeah, that's fine for gnome-app-install, no problem, it just doesn't help me with what I'm trying to do, which is work out, for a given arbitrary .deb file, what its .desktop file is after it's installed...00:48
Fujitsuaquarius: dpkg -L package | grep desktop$00:49
aquariusyeah, that's what I'm debating doing now...00:49
RAOFapt-file search *.desktop?00:51
RAOF(For the reciprocal problem)00:51
IntuitiveNippleaquarius: In the .desktop file that comes with the package, and is installed to /usr/share/applications/ , the "Categories=Application;XXXXX" sets the location in the menus. you also need "Type=Application"00:54
FujitsuIntuitiveNipple: Except that the Application category has been deprecated for years.00:55
aquariustilda.desktop, say, has "Categories=GNOME;GTK;Application;Utility;TerminalEmulator;"; does it end up only in Applications on the main menu because that's the only one that exists, and there's no "Utility" or "TerminalEmulator" submenu on the Applications menu?00:56
Fujitsu`Utility' should translate to `Accessories', I believe.00:56
FujitsuAnd that .desktop is broken.00:56
aquariuserm. I meant Accessories, sorry, yes :)00:57
aquariusso there's a lookup list somewhere which says "Category:Utility" == "Accessories menu"?00:57
FujitsuUtility becomes Accessories in GNOME, yeah.00:57
aquariusIf I wanted to build an "Applications" folder which reflected the structure of the menu (so submenus become subfolders)...has someone already done this? If not, is there a .desktop file cache somewhere I can read, or do I need to parse all the .desktop files myself?00:59
IntuitiveNippleaquarius: Parse /etc/xdg/menus/applications.menu for the <Category>...</Category> tags (use the <Directory/> tag for the display name01:10
IntuitiveNippleaquarius: sorry... my brain is dead ... use the <Name/> tag for the display name01:10
aquariuserm...that file just defines the names of the submenus?01:11
aquariusit doesn't define what's in them01:11
IntuitiveNippleIt defines the categories. They are parsed by gnome-menus and then it uses those when it reads the .desktop files to work out where to put the application entries in the tree01:12
aquariusoh, right, gotcha.01:13
aquariusso if I want to duplicate the structure I need to parse all the .desktop files myself, dividng them up according to applications.menu -- there's no handy cache anywhere? darn :_01:13
aquarius:)01:13
IntuitiveNippleI'm not sure if there is a cache, I believe it rescans each time it starts but I could be wrong, it isn't an area I have looked into much aside form working out how to get my packaged apps into the menus01:14
rocketssilly question. why is it that we have firefox, not iceweasel, but we have iceape, not seamonkey03:45
=== rob1 is now known as rob
Hobbseewb, elkbuntu04:17
elkbuntuHobbsee, is the network still being epileptic?04:17
StevenKWe'll see04:17
=== pedro is now known as pedro_
=== asac_ is now known as asac
=== Mithrand1r is now known as Mithrandir
=== RemoteVi1wer is now known as RemoteViewer
=== jdong_ is now known as jdong
=== Robot101_ is now known as Robot101
=== highvolt1ge is now known as highvoltage

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!