[00:00] without knowing all the details, I think it wouldn't be too difficult to implement indeed [00:00] by creating an ad-hoc .desktop file [00:00] well, let's say I pin a particular PDF to the launcher; then I open that PDF, not from the launcher, but from within Evince or within Nautilus [00:01] what I'd want to happen is for that launcher icon to light up, rather than Evince's, and for it to not group with my other Evince windows [00:01] that's the hard part implementation-wise (it's the same task as working out what .desktop file to create) [00:01] everything else is easy, as you've pointed out [00:03] when you add support for something like that to an application, the application should be able to refer to the right .desktop file I assume (or else BAMF needs some serious fixes) [00:04] although, maybe it doesn't, and that's why it behaves weird half of the time ;) [00:04] it doesn't, and that is indeed why it behaves weird half of the time :) [00:05] I mean, I have 2 nautilus items right now, and have no idea why--the non-persistent active one was started by clicking the non-active persistent one's icon ;) [00:07] I somehow managed to get two copies of my newsreader in the launcher once [00:08] and I wasn't even doing anything unusual [00:08] (although it crashed a lot, so maybe apport is indirectly responsible for that one) [00:08] maybe you asked apport to restart the application, so it didn't get restarted using its .desktop file? [00:09] yep, that's what I'm thinking [00:09] although it should have been able to match it to the .desktop file anyway via window class and executable [00:09] apport can't really rely on that being available, I suppose [00:10] but maybe could use it optionally [00:10] it's not apport's fault, it's bamf's [00:10] ideally it should ignore how an application started altogether when matching [00:11] although it needs to look at that to learn what a launcher does, I think [00:11] well, it needs some way to match applications to launcher items ;) [00:12] yes [00:12] but AFAIK there is no mandatory thing available to be able to do that [00:13] so it needs help from the application, and hope the application isn't confused itself ;) [00:14] yep [00:14] it should be able to handle applications in general with some heuristics, although some would need special cases [00:14] you can look for things that look like filenames in the title bar, for instance [00:14] start with ~ or / and the name of one of the top-level directories on the system [00:15] and you can work out that a launcher is for an application plus a specific file, by comparing the command lines; one will have a filename where the other has a wildcard [00:44] it's not as easy as that, I suppose [00:45] it's never as easy as that when you start implementing it [00:45] atm I'm trying to figure out how to figure out what process is foregrounded in a terminal [00:45] and there's a syscall (actually ioctl) for that but for some reason you're only allowed to use it if you're running on that terminal yourself… [00:47] that sounds like a sensible restriction fro ma security PoV ;) [00:47] I'd expect it to also be allowed if you're running as the same user [00:47] there's apparently both a user check and a terminal check [00:48] and I think you can get around it anyway by using the debugging API to start debugging an application on that terminal and ask it to make the check for you, but that's obviously ridiculous [00:48] what if you have a sudo session running in that terminal? [00:49] then you get EPERM from the syscall [00:50] probably better to keep application matching to actual X apps to start with, ☺ [00:50] ? [00:50] as in, a different error [00:50] "you aren't on the terminal" is ENOTTY, versus "you don't have the permissions to see which program is running" which is EPERM [00:50] ah, makes sense [00:51] I mean, the error differences [00:51] huh, no, EPERM is only for /setting/ [00:52] I guess what happens is that if you're on the terminal, it tells you that sudo is running [00:52] but not what sudo is doing, which you don't have the perms to look at [00:52] anyone has the perms to check if it's running or not, though [08:21] so.. if anyones around... Not sure where this belongs, but I get a nice system settings crash and then when I click report bug the bug reporter just closes. :/ [08:22] I can repeat it every time... === jalcine is now known as Jacky [15:33] hello everybody [15:33] I have a problem to install Unity on my Ubuntu 12.04 [15:34] I install it with the main depositeries, but when I try to use it, there is nothing like Unity in the list [15:34] someone can help me?? [15:34] It should say 'Ubuntu' [15:35] but it's Lubuntu [15:35] But the session name for Unity is 'Ubuntu'. [15:35] that's why there is no unity install by default [15:36] I check it and I come back to say [15:38] There is nothing like Ubuntu [15:39] there is only Lubuntu LXDE Gnome/openbox [15:40] why there's no ubuntu? can you help me [15:40] ?? [15:44] I'm not sure. [15:59] I have to precise what are the problems which ennoy me with my computer : when I do ctrl + alt + F1 to F6 there is an error message on my monitor with : "NO SUPPORT" and the same when I start my computer in the place of my grub [16:02] http://forum.ubuntu-fr.org/viewtopic.php?id=907421 [16:08] Margouillat: if you want a Unity-based desktop, then install the ubuntu-desktop package (not only unity) [16:08] then that should be an option in the login screen [17:32] just saw this: http://blog.rootshell.be/2012/05/02/integrating-osvdb-into-ubuntuunity/ ☺ === tbf is now known as tbf|afk === ais523_ is now known as ais523