[00:08] siretart: apologies, I've had an admin clear it [00:27] How does Add/Remove Programs know where on the menus an application has just been installed? Is it just watching the .desktop files cache? [00:28] (not sure if this counts as an "application development *on* Ubuntu" question...) [00:31] aquarius: i dont think it does. it knows whats installed and somehow knows where they usually go [00:31] maybe debtags, maybe from scanning the .desktops from the packages [00:34] There's a .menu file for Gnome [00:37] aha, gnome-app-install is Python. that makes my life easier :) [00:38] aquarius: 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:46] ah. gnome-app-install has a pre-existing cache of .desktop files for apps that aren't installed. :( [00:47] aquarius: How else would it know they existed? [00:48] Fujitsu: 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:49] aquarius: dpkg -L package | grep desktop$ [00:49] yeah, that's what I'm debating doing now... [00:51] apt-file search *.desktop? [00:51] (For the reciprocal problem) [00:54] aquarius: 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:55] IntuitiveNipple: Except that the Application category has been deprecated for years. [00:56] tilda.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] `Utility' should translate to `Accessories', I believe. [00:56] And that .desktop is broken. [00:57] erm. I meant Accessories, sorry, yes :) [00:57] so there's a lookup list somewhere which says "Category:Utility" == "Accessories menu"? [00:57] Utility becomes Accessories in GNOME, yeah. [00:59] If 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? [01:10] aquarius: Parse /etc/xdg/menus/applications.menu for the ... tags (use the tag for the display name [01:10] aquarius: sorry... my brain is dead ... use the tag for the display name [01:11] erm...that file just defines the names of the submenus? [01:11] it doesn't define what's in them [01:12] It 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 tree [01:13] oh, right, gotcha. [01:13] so 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] :) [01:14] I'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 menus [03:45] silly question. why is it that we have firefox, not iceweasel, but we have iceape, not seamonkey === rob1 is now known as rob [04:17] wb, elkbuntu [04:17] Hobbsee, is the network still being epileptic? [04:17] We'll see === 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