/srv/irclogs.ubuntu.com/2012/05/13/#ubuntu-unity.txt

JanCwithout knowing all the details, I think it wouldn't be too difficult to implement indeed00:00
JanCby creating an ad-hoc .desktop file00:00
ais523well, 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 Nautilus00:00
ais523what 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 windows00:01
ais523that's the hard part implementation-wise (it's the same task as working out what .desktop file to create)00:01
ais523everything else is easy, as you've pointed out00:01
JanCwhen 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:03
JanCalthough, maybe it doesn't, and that's why it behaves weird half of the time  ;)00:04
ais523it doesn't, and that is indeed why it behaves weird half of the time :)00:04
JanCI 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:05
ais523I somehow managed to get two copies of my newsreader in the launcher once00:07
ais523and I wasn't even doing anything unusual00:08
ais523(although it crashed a lot, so maybe apport is indirectly responsible for that one)00:08
JanCmaybe you asked apport to restart the application, so it didn't get restarted using its .desktop file?00:08
ais523yep, that's what I'm thinking00:09
ais523although it should have been able to match it to the .desktop file anyway via window class and executable00:09
JanCapport can't really rely on that being available, I suppose00:09
JanCbut maybe could use it optionally00:10
ais523it's not apport's fault, it's bamf's00:10
ais523ideally it should ignore how an application started altogether when matching00:10
ais523although it needs to look at that to learn what a launcher does, I think00:11
JanCwell, it needs some way to match applications to launcher items  ;)00:11
ais523yes00:12
JanCbut AFAIK there is no mandatory thing available to be able to do that00:12
JanCso it needs help from the application, and hope the application isn't confused itself  ;)00:13
ais523yep00:14
ais523it should be able to handle applications in general with some heuristics, although some would need special cases00:14
ais523you can look for things that look like filenames in the title bar, for instance00:14
ais523start with ~ or / and the name of one of the top-level directories on the system00:14
ais523and 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 wildcard00:15
JanCit's not as easy as that, I suppose00:44
ais523it's never as easy as that when you start implementing it00:45
ais523atm I'm trying to figure out how to figure out what process is foregrounded in a terminal00:45
ais523and 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:45
JanCthat sounds like a sensible restriction fro ma security PoV  ;)00:47
ais523I'd expect it to also be allowed if you're running as the same user00:47
ais523there's apparently both a user check and a terminal check00:47
ais523and 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 ridiculous00:48
JanCwhat if you have a sudo session running in that terminal?00:48
ais523then you get EPERM from the syscall00:49
JanCprobably better to keep application matching to actual X apps to start with,  ☺00:50
JanC?00:50
ais523as in, a different error00: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 EPERM00:50
JanCah, makes sense00:50
JanCI mean, the error differences00:51
ais523huh, no, EPERM is only for /setting/00:51
ais523I guess what happens is that if you're on the terminal, it tells you that sudo is running00:52
ais523but not what sudo is doing, which you don't have the perms to look at00:52
ais523anyone has the perms to check if it's running or not, though00:52
jussiso.. 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:21
jussiI can repeat it every time...08:22
=== jalcine is now known as Jacky
Margouillat-Sambhello everybody15:33
Margouillat-SambI have a problem to install Unity on my Ubuntu 12.0415:33
Margouillat-SambI install it with the main depositeries, but when I try to use it, there is nothing like Unity in the list15:34
Margouillat-Sambsomeone can help me??15:34
DaekdroomIt should say 'Ubuntu'15:34
Margouillat-Sambbut it's Lubuntu15:35
DaekdroomBut the session name for Unity is 'Ubuntu'.15:35
Margouillat-Sambthat's why there is no unity install by default15:35
Margouillat-SambI check it and I come back to say15:36
MargouillatThere is nothing like Ubuntu15:38
Margouillatthere is only Lubuntu LXDE Gnome/openbox15:39
Margouillatwhy there's no ubuntu? can you help me15:40
Margouillat??15:40
DaekdroomI'm not sure.15:44
MargouillatI 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 grub15:59
Margouillathttp://forum.ubuntu-fr.org/viewtopic.php?id=90742116:02
JanCMargouillat: if you want a Unity-based desktop, then install the ubuntu-desktop package (not only unity)16:08
JanCthen that should be an option in the login screen16:08
JanCjust saw this: http://blog.rootshell.be/2012/05/02/integrating-osvdb-into-ubuntuunity/  ☺17:32
=== tbf is now known as tbf|afk
=== ais523_ is now known as ais523

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!