mirror of
https://github.com/linuxmint/timeshift.git
synced 2024-08-17 04:20:34 +03:00
Fixed build errors on Ubuntu 12.04 (precise)
This commit is contained in:
parent
050896984d
commit
fbb5180ac1
@ -2321,7 +2321,8 @@ public class TimeShiftBackup : GLib.Object{
|
||||
path = dir_path;
|
||||
name = info.get_name();
|
||||
description = "";
|
||||
date = new DateTime.from_timeval_local(info.get_modification_time());
|
||||
|
||||
date = new DateTime.from_unix_utc(0);
|
||||
tags = new Gee.ArrayList<string>();
|
||||
exclude_list = new Gee.ArrayList<string>();
|
||||
|
||||
|
@ -1047,7 +1047,7 @@ namespace Utility
|
||||
string output;
|
||||
|
||||
try {
|
||||
Process.spawn_command_line_sync("ps --ppid " + parentPid.to_string(), out output);
|
||||
Process.spawn_command_line_sync("ps --ppid %d".printf(parentPid), out output);
|
||||
}
|
||||
catch(Error e){
|
||||
log_error (e.message);
|
||||
@ -1533,12 +1533,12 @@ namespace Utility
|
||||
|
||||
public int process_pause (Pid procID)
|
||||
{
|
||||
return execute_command_sync ("kill -STOP " + procID.to_string());
|
||||
return execute_command_sync ("kill -STOP %d".printf(procID));
|
||||
}
|
||||
|
||||
public int process_resume (Pid procID)
|
||||
{
|
||||
return execute_command_sync ("kill -CONT " + procID.to_string());
|
||||
return execute_command_sync ("kill -CONT %d".printf(procID));
|
||||
}
|
||||
|
||||
public int notify_send (string title, string message, int durationMillis, string urgency)
|
||||
|
Loading…
Reference in New Issue
Block a user