[00:00] <JanC> without knowing all the details, I think it wouldn't be too difficult to implement indeed
[00:00] <JanC> by creating an ad-hoc .desktop file
[00:00] <ais523> 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] <ais523> 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] <ais523> that's the hard part implementation-wise (it's the same task as working out what .desktop file to create)
[00:01] <ais523> everything else is easy, as you've pointed out
[00:03] <JanC> 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] <JanC> although, maybe it doesn't, and that's why it behaves weird half of the time  ;)
[00:04] <ais523> it doesn't, and that is indeed why it behaves weird half of the time :)
[00:05] <JanC> 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] <ais523> I somehow managed to get two copies of my newsreader in the launcher once
[00:08] <ais523> and I wasn't even doing anything unusual
[00:08] <ais523> (although it crashed a lot, so maybe apport is indirectly responsible for that one)
[00:08] <JanC> maybe you asked apport to restart the application, so it didn't get restarted using its .desktop file?
[00:09] <ais523> yep, that's what I'm thinking
[00:09] <ais523> although it should have been able to match it to the .desktop file anyway via window class and executable
[00:09] <JanC> apport can't really rely on that being available, I suppose
[00:10] <JanC> but maybe could use it optionally
[00:10] <ais523> it's not apport's fault, it's bamf's
[00:10] <ais523> ideally it should ignore how an application started altogether when matching
[00:11] <ais523> although it needs to look at that to learn what a launcher does, I think
[00:11] <JanC> well, it needs some way to match applications to launcher items  ;)
[00:12] <ais523> yes
[00:12] <JanC> but AFAIK there is no mandatory thing available to be able to do that
[00:13] <JanC> so it needs help from the application, and hope the application isn't confused itself  ;)
[00:14] <ais523> yep
[00:14] <ais523> it should be able to handle applications in general with some heuristics, although some would need special cases
[00:14] <ais523> you can look for things that look like filenames in the title bar, for instance
[00:14] <ais523> start with ~ or / and the name of one of the top-level directories on the system
[00:15] <ais523> 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] <JanC> it's not as easy as that, I suppose
[00:45] <ais523> it's never as easy as that when you start implementing it
[00:45] <ais523> atm I'm trying to figure out how to figure out what process is foregrounded in a terminal
[00:45] <ais523> 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] <JanC> that sounds like a sensible restriction fro ma security PoV  ;)
[00:47] <ais523> I'd expect it to also be allowed if you're running as the same user
[00:47] <ais523> there's apparently both a user check and a terminal check
[00:48] <ais523> 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] <JanC> what if you have a sudo session running in that terminal?
[00:49] <ais523> then you get EPERM from the syscall
[00:50] <JanC> probably better to keep application matching to actual X apps to start with,  ☺
[00:50] <JanC> ?
[00:50] <ais523> as in, a different error
[00:50] <ais523> "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] <JanC> ah, makes sense
[00:51] <JanC> I mean, the error differences
[00:51] <ais523> huh, no, EPERM is only for /setting/
[00:52] <ais523> I guess what happens is that if you're on the terminal, it tells you that sudo is running
[00:52] <ais523> but not what sudo is doing, which you don't have the perms to look at
[00:52] <ais523> anyone has the perms to check if it's running or not, though
[08:21] <jussi> 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] <jussi> I can repeat it every time...
[15:33] <Margouillat-Samb> hello everybody
[15:33] <Margouillat-Samb> I have a problem to install Unity on my Ubuntu 12.04
[15:34] <Margouillat-Samb> I install it with the main depositeries, but when I try to use it, there is nothing like Unity in the list
[15:34] <Margouillat-Samb> someone can help me??
[15:34] <Daekdroom> It should say 'Ubuntu'
[15:35] <Margouillat-Samb> but it's Lubuntu
[15:35] <Daekdroom> But the session name for Unity is 'Ubuntu'.
[15:35] <Margouillat-Samb> that's why there is no unity install by default
[15:36] <Margouillat-Samb> I check it and I come back to say
[15:38] <Margouillat> There is nothing like Ubuntu
[15:39] <Margouillat> there is only Lubuntu LXDE Gnome/openbox
[15:40] <Margouillat> why there's no ubuntu? can you help me
[15:40] <Margouillat> ??
[15:44] <Daekdroom> I'm not sure.
[15:59] <Margouillat> 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] <Margouillat> http://forum.ubuntu-fr.org/viewtopic.php?id=907421
[16:08] <JanC> Margouillat: if you want a Unity-based desktop, then install the ubuntu-desktop package (not only unity)
[16:08] <JanC> then that should be an option in the login screen
[17:32] <JanC> just saw this: http://blog.rootshell.be/2012/05/02/integrating-osvdb-into-ubuntuunity/  ☺