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