[06:45] hm, lernid is pretty nifty [06:46] too bad it wasn't written in Mono, so it could run on Windows and Mac boxes too [10:29] Good news everyone! *imitates professor Farnsworth* I've just recieved word from my university, and they have agreed to let me count my work on Quickshot as a university course, meaning that I can dedicate more of my time to the project, and get university credits for it at the same time! :D === dutchie_ is now known as dutchie [12:01] Wow, there's a lot of people coming and going, but no one is talking .:8 [12:01] *:( [12:02] Hey, d0od, aren't you the OMG! Ubuntu! guy? [12:02] I am indeed [12:02] Cool. Are you involved in the Ubuntu Manual project? [12:03] I intended to be... i kinda just "promote" it etc now [12:04] I see. I only just became involved myself. Well, I'm not part of the actual writing. I'm working on Quickshot, to semi-automate the taking of screenshots in multiple languages. [12:05] I read that on Buzz. Which makes me sound like a stalker... but i follow you and Humphrey [12:06] I've yet to get QuickShot to run, but it's a great little project. [12:06] Well there's not much to run yet. [12:07] So far all it does is create a new user account (if one does not already exist). [12:08] But I just now recieved approval from my university to count this project as a university course, which means I'll have more time to work on it. [12:08] Which is great. [12:08] That's rad! [12:09] Indeed. It might even allow me to drop one of the useless, boring and horribly depressing business courses that I would otherwise have to take. :p [12:09] Business modules are pretty much hell incarnate! I had to do some at uni and count them as some of the biggest waste of my life so far... [12:23] business modules suck [13:43] Thank the heavens! I just found out that this project gives me enough credit to be able to quit that business course I was talking about. [13:44] wooo thats great. In quick shot when you click the login button you get the login screen you still have to choose the user and enter the password though. Are we aiming to automatically choose the user so they only have to enter the password? [13:45] Not really. I was going to bring it up with Benjamin once he gets back. Here's what I'm thinking: [13:45] 1. Check if the user account Quickshot exists and the user is logged into it. [13:46] 2a: If not, create the account and then tell the user to log into the Quickshot account. [13:46] 2b: If it does exist and the user is logged into it, skip directly to the screenshot taking part. [13:46] As I see it, there's no smooth way to simply "switch over" to the Quickshot account. [13:47] So this is probably the easiest way [13:47] ok sounds good. I can get the login screen apearing when they click the login window, the user has to login and I know how to get quickly to relaunch [13:47] *button not window *quickshot not quickly [13:48] Could you refrase that? I'm not quite sure I follow you. [13:49] Quickshot creates/check for account [13:50] this screen appears http://imagebin.org/85193 and I can make login button go to the user list that you see when you login [13:51] the user chooses quickly and then types in the password [13:51] *quickshot [13:52] I can then make quickshot load when they login [13:52] Oh, that's great. How would you do that? [13:54] making it autostart is done by adding a line to the end of the quickshot users .profile file. cureently testing with firefox about to try with quickshot [13:54] Alright. Give it a shot. How about starting a new session by pressing "login"? [13:56] I don't think it is possible, thats what i started with, I will keep looking into it. [13:57] when we create a user can we create an auto login without password user? there is now a tickbox for it in lucid [13:58] Creating a password-less user wouldn't be a very good idea. Either it wouldn't have the privileges needed, or it would be a security risk. [14:00] not password less. In lucid the user can login without typing their password [14:02] user add keeps crashing but that was the case a few weeks ago [14:03] Huh? User add keeps crashing? What are you talking about? [14:03] go system>aministration>user and groups and try and add a user [14:03] i asume you are in lucid [14:04] Oh, I see. I just use: sudo useradd -m -p ENCRYPTED_PASSWORD USERNAME [14:07] I do use the command line way as well, I shall keep trying to get it working [14:50] Tommy Brunn, how do i return the login name of the current user? [14:51] Not sure. I haven't looked into it yet. [14:52] ok cool working on it now. The only way I can add the lines to the end of .profile is to change the file permissions, they get changed back but is that to much of a security risk? [14:53] Couldn't you just do it as root? [14:56] not sure I will check the default permissions I think not [15:00] no only the owner has permisson to write [15:01] I see. Oh well, temporarily changing the permissions shouldn't be such a big deal - as long as we make sure to change them back once we're done. [15:01] The are changed back two lines later [15:01] Great. [15:16] I've been looking into taking screenshots using Python, and it doesn't seem that hard at all. [15:16] So really, we should be able to finish this project pretty soon. [15:16] Which is quite disconcerting in one way, because I'm my university course is supposed to take between 2 and 4 months. :P [15:21] cool I had not concidered that bit yet. I have the user name importing but there is a problem with the if function not working [15:22] Could you push the changes to trunk and I'll have a look. [15:23] Will do I have an error at the moment [15:32] add after line 151 http://paste.ubuntu.com/378401/ and change the YOUR_PATH_TO_THE_QUICKSHOT_FOLDER and allow all users to exicute the quickly folder in your user. I am setting up variables to make it work for all people best not to put it in the branch until then. It will also need changing slightly when we have a proper program but it gives you the idea. [15:33] Make sure you pull before you push, btw. I've commited some minor UI fixes. [15:33] I can't add it to the branch yet see previous post [15:34] What does this do? 'echo "cd /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot" >>/home/quickshot/.profile' [15:35] it adds the line to the .profile file in the quickshot user so that they can do quickly run on login. [15:36] So what exactly is it supposed to add to the .profile file? [15:36] /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot [15:36] and [15:36] quickly run [15:36] thats done by the next line [15:37] ment to put cd /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot [15:37] So /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot is supposed to be where the program is installed to? [15:38] So in my case, I have my quickshot folder in /home/nevon/workspace/quickshot/ [15:38] yes, you wouldn't have that line in the real program its a work around [15:39] you will proably have to remove pervious quickshot users [15:39] Hmm. I'm not sure if this is correct. Also, the commands won't be run interactively, so for each command you start from home. So there's no need for os.system("exit") or os.system("cd") [15:40] And you don't need to store the output in $success, unless you intend to do something with it. [15:40] You can simply run it directly. [15:40] I was unsure i put them in just incase concider them remove. This is my first program of any kind [15:41] *removed [15:43] I think there's an easier way to edit the .profile file. [15:44] as far as I understand only the owner has write permissions. I am welcome to suggestions [15:45] I'm working on it. [15:46] cool [15:49] http://paste.ubuntu.com/378415/ [15:49] I haven't tried it though. [15:49] You should probably try it on some harmless file first. [15:49] For a test. [15:51] cool about to ty it whats wrong with http://paste.ubuntu.com/378417/ [15:52] copy and paste fail! this should be at the to currentuser = os.getlogin() [15:53] Should be like this: [15:53] if currentuser == "luke-jennings": [15:53] print "Ok" [15:57] that works great had to edit the home directory to point to mine. is it possible to set that as a variable? [15:58] Getting the current user's home directory? [15:58] os.path.expanduser("~") [15:58] But that will get the current user's home directory, not quickshot's home directory [15:59] But we already know that quickshot's home directory will always be /home/quickshot [15:59] current users quickshot directory as in my directory or your directory. [16:00] No, not really. And it wouldn't matter much anyway, because the quickshot user can't run anything in the regular user's home directory. [16:00] I know the quickshot how doesn't have a quickshot branch you need access to the branch to do "quickly run" . [16:00] this is only needed whilst its not a full packaged program [16:01] Yeah, I'm not sure. I haven't figured that out yet. I suppose you could copy the quickshot directory over to the quickshot user's home directory and give the quickshot user ownership of the new directory. [16:02] that is a better idea, [16:03] To do that, you use the shutil module with the copytree method. [16:03] http://docs.python.org/library/shutil.html [16:04] is it miles better than doing os.system(cp......) [16:04] And then use os.system('chown +R quickshot /home/quickshot/quickshot') [16:04] You should always try to use Python when you can, rather than relying on bash. [16:05] ok cool you are teaching me alot [16:05] thanks [16:05] Haha, I didn't know I had much to teach. :D [16:06] right so if we use the shutil module to do that I have the user detected I just need to skip lots of lines in the file to the later windows [16:07] what time zone are you in I am in GMT [16:07] I'm not sure what you mean. [16:07] I'm in GMT+1 [16:07] cool [16:07] What's your native language? [16:08] ac.uk? Britain? [16:08] english I am a shocking at explaining things in a written form. :) [16:09] Have you gotten your current changes working to the point where the program doesn't crash? [16:09] Or does anything funny? [16:09] If so, you should probably push the changes so that I can have a look. [16:09] you have edited my only change :P [16:10] My girlfriend will be coming home soon, and I have a feeling she'll be hungry, so I'm going to have to leave in a bit. [16:10] Well, push that then. [16:10] sure I ping me if you are on later thanks so much for your time. I will try and learn more [16:16] Just give me a shout if there's anything you need. I won't be far away [16:16] Ok I will understand the shutil library [18:21] * ubuntujenkins has pushed some stuff for quickshot [18:30] * TommyBrunn will check it out [18:31] make sure you remove previous user [18:32] Some of this stuff is in the wrong place, and it's incorrectly indented - which breaks it, since whitespace is syntactically significant in Python. [18:34] woops I know which bit you mean, I wanted it to trigger on the ok button of the password window as we don't want the branch added everytime people click login [18:34] Also, you need to make sure that you're indenting using 4 spaces, not tabs [18:35] Otherwise it also breaks. [18:35] I'm going to clean this up and push it [18:35] thank you :) [18:36] * ubuntujenkins reads on white spaces [18:48] * TommyBrunn pushed the changes. [18:49] The next thing will be to check whether or not the user is logged in as quickshot. If so, then the application should skip ahead to the window called "newuserwelcome" [18:50] I am thinking I will not push anything before showing you, [18:52] just check but I think there is a error [18:52] when runing it [18:52] The best thing would be to create your own branch that you can push to. That way your work can be reviewed before being merged into the main branch. [18:52] Where's the error? [18:52] line 169 [18:52] 169? That's a comment :S [18:53] What does the error message say? [18:53] I know it says http://paste.ubuntu.com/378540/ [18:54] wtf [18:54] That is... Odd. [18:54] You're right. I get the same error. :S [18:56] Found it [18:56] same [18:56] Sloppy mistake on my part. [18:57] I will let you push the change [18:58] Pushed. [18:59] pulled [18:59] Anyway. You should get yourself a new branch. That way you can make whatever changes you want, and when you've got something you want to merge with the main branch, you can just file a merge request and have someone look through the code and add it to the main one. [18:59] https://code.launchpad.net/quickshot/+addbranch [19:00] The only difference will be that you push using: [19:00] bzr push lp:~ubuntujenkins/quickshot/quickshot-branch [19:00] Or something like that. [19:00] deffinatley sounds like a good idea [19:01] brb [19:22] godbyk with the screenshots are they going in the ubuntu-manual branch or in a screenshots branch? [19:50] TommyBrunn what calls the "newuserwelcome" window? [20:02] Windows and shown and hidden using: [20:02] self..hide() [20:02] or [20:02] self..show() [20:03] ok thanks [21:17] Good job on finding gdmflexiserver, ubuntujenkins. [21:17] I just tried it all out, and it works perfectly for what we want it to do. [21:17] thanks I am starting to understand things now [21:19] Good. I'm itching to start working on the project for real, but I want to wait until Benjamin gets back so that we can formulate a project plan for my uni. [21:19] I have stuff to write for the manual, I think it is soon going to get way out of my depth [21:20] I have to document all my work, and for some reason I don't think they would be happy if I finished the project in a quarter of the time I was alloted. [21:20] What are you writing for the manual? [21:20] well the manual has to be out by lucid release [21:20] I have done f-spot empathy and am on totem [21:20] brb [21:21] Oh I intend to finish Quickshot long before the deadline for the manual, but I can't finish it before I have officially started. [21:21] Red tape, always getting in the way. [21:22] I see when do you officialy start? [21:28] Well, Benjamin, who will be my handler, gets back two days from now, I believe. After that, we need to formulate a project plan. After that, I can officially start. [21:29] So 3-5 days, I guess. [21:32] thats cool I will the manual has to be basicly written by then, I have uni work to do so thats perfect. I don't expect to do anymore after tonight === Randolf is now known as wolter [21:53] ubuntujenkins: I don't see why the screenshots can't go in the main branch. They'll end up there eventually anyway. [21:53] ubuntujenkins: Or do you mean the screenshots taken by QuickShot? In that case, they may go to their own branch and get merged in later. [21:54] godbyk: The screenshots need to be stored in their own branch, as quickshot needs to be able to download them with each new session. [21:55] TommyBrunn: Yeah, if his question was in the context of QuickShot, then the screenshots will go in their own branch. [21:55] thanks godbyk I thought they would go in a seperate branch just wanted to know if you were able to merge the screenshot branch and the manual branch [21:55] Shouldn't be a problem. [21:55] i was talking about quickshot [21:57] * ubuntujenkins is restarting