[Vala] Customized Cell for List

2013-05-23 Thread Christian Capasso
Hi everyone, I'm trying to create a customized object to represent a list of objects. Since now, I have followed some different methods and none of them has brought me to the solution. First, I have created a Gtk.Fixed with some Gtk.Labels inside: then, when I have to represent the list, the code

Re: [Vala] Process spawn not working when the Terminal is not opened

2013-05-04 Thread Christian Capasso
Thank you! pkexec works perfectly! 2013/5/4 Christian Capasso > Thank you! > > pkexec works perfectly! > > > 2013/5/4 Arnel A. Borja > > Hello, >> >> >> On Fri, 2013-05-03 at 19:48 +0200, Christian Capasso wrote: >> >>> If I need ro

Re: [Vala] Process spawn not working when the Terminal is not opened

2013-05-04 Thread Christian Capasso
Thank you! pkexec works perfectly! 2013/5/4 Arnel A. Borja > Hello, > > > On Fri, 2013-05-03 at 19:48 +0200, Christian Capasso wrote: > >> If I need root's permissions, for example when it comes to the format, >> or to the umount, what should I do? Should I use

Re: [Vala] Process spawn not working when the Terminal is not opened

2013-05-03 Thread Christian Capasso
If I need root's permissions, for example when it comes to the format, or to the umount, what should I do? Should I use Process.spawn or not? 2013/5/3 Arnel A. Borja > Hello Christian, > > > On Friday, 03 May, 2013 11:53 PM, Christian Capasso wrote: > >> Thank you

Re: [Vala] Process spawn not working when the Terminal is not opened

2013-05-03 Thread Christian Capasso
that can't be passed through gksudo. Is there a way to solve this issue and send arguments to gksudo? Or, alternatively, is there a way to get and keep root permissions with gksudo, just like "sudo -s" does? Thank you 2013/5/2 Arnel A. Borja > Hello Christian, > > >

[Vala] Process spawn not working when the Terminal is not opened

2013-05-02 Thread Christian Capasso
Hi, I'm having some issues using the Process_spawn command in an application ready to be released. My problem is that, the Process_spawn command is not working if a Terminal window is not opened. For example, the "dd" command works fine if the application starts up with an empty Terminal window.

Re: [Vala] Get correct PID after sudp

2013-04-19 Thread Christian Capasso
efore the start of the operation and then release that permission as soon as the operation finish. Thank you again, Christian 2013/4/19 Alexander Krivács Schrøder > On 19.04.2013 11:35, Christian Capasso wrote: > > Hi, > > > > I'm using Process.spawn_async() to

[Vala] Get correct PID after sudp

2013-04-19 Thread Christian Capasso
Hi, I'm using Process.spawn_async() to launch a process that requires administrator privileges. This function returns the PID linked to the sudo command, which is different from the real PID of the command that I launched. For example, if the process launched is "dd", I get a different PID, which

[Vala] Knowing when a terminal command is done

2013-04-15 Thread Christian Capasso
Hi, I'm working with some terminal commands, that I call using "Process.spawn_command_line_async": how can I know when these commands are completed? For example, one of the operation consists of downloading a file from the web: are there any possibilities to get its progress or, at least, get a n

[Vala] Terminal output in a text file

2013-03-28 Thread Christian Capasso
Hi, i am new in Vala Programation. I have a problem using the comand "Process.spawn_command_line_sync" : when i try to set a comand similar to " ls > text.txt" the program doesn't create the txt file requested. I will post u an example code to make this clearer to you. [CCode (instance_pos = -1)]