crimsun | siretart: apologies, I've had an admin clear it | 00:08 |
---|---|---|
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:27 |
aquarius | (not sure if this counts as an "application development *on* Ubuntu" question...) | 00:28 |
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:31 |
IntuitiveNipple | There's a .menu file for Gnome | 00:34 |
aquarius | aha, gnome-app-install is Python. that makes my life easier :) | 00:37 |
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:38 |
aquarius | ah. gnome-app-install has a pre-existing cache of .desktop files for apps that aren't installed. :( | 00:46 |
Fujitsu | aquarius: How else would it know they existed? | 00:47 |
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:48 |
Fujitsu | aquarius: dpkg -L package | grep desktop$ | 00:49 |
aquarius | yeah, that's what I'm debating doing now... | 00:49 |
RAOF | apt-file search *.desktop? | 00:51 |
RAOF | (For the reciprocal problem) | 00:51 |
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:54 |
Fujitsu | IntuitiveNipple: Except that the Application category has been deprecated for years. | 00:55 |
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:56 |
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:57 |
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? | 00:59 |
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:10 |
aquarius | erm...that file just defines the names of the submenus? | 01:11 |
aquarius | it doesn't define what's in them | 01:11 |
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:12 |
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:13 |
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 | 01:14 |
rockets | silly question. why is it that we have firefox, not iceweasel, but we have iceape, not seamonkey | 03:45 |
=== rob1 is now known as rob | ||
Hobbsee | wb, elkbuntu | 04:17 |
elkbuntu | Hobbsee, is the network still being epileptic? | 04:17 |
StevenK | We'll see | 04: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!