mirror of
https://github.com/linuxmint/timeshift.git
synced 2024-09-11 17:07:43 +03:00
Fixed mount errors on Fedora
This commit is contained in:
parent
4cd37f7cb8
commit
9e0b86e085
@ -149,7 +149,7 @@ public class Main : GLib.Object{
|
||||
|
||||
if (!user_is_admin()){
|
||||
msg = _("TimeShift needs admin access to backup and restore system files.") + "\n";
|
||||
msg += _("Please run the application as admin (using 'sudo')");
|
||||
msg += _("Please run the application as admin (using 'sudo' or 'su')");
|
||||
|
||||
if (app_mode == ""){
|
||||
string title = _("Admin Access Required");
|
||||
@ -574,7 +574,7 @@ public class Main : GLib.Object{
|
||||
public static string help_message (){
|
||||
string msg = "\n" + AppName + " v" + AppVersion + " by Tony George (teejee2008@gmail.com)" + "\n";
|
||||
msg += "\n";
|
||||
msg += "Syntax: sudo timeshift [options]\n";
|
||||
msg += "Syntax: timeshift [options]\n";
|
||||
msg += "\n";
|
||||
msg += _("Options") + ":\n";
|
||||
msg += "\n";
|
||||
|
@ -918,7 +918,7 @@ namespace TeeJee.DiskPartition{
|
||||
}
|
||||
else if (info.mount_point_list.contains(mount_point) && info.device != device){
|
||||
//another device is mounted at mount point - unmount it -------
|
||||
cmd = "sudo umount \"%s\"".printf(mount_point);
|
||||
cmd = "umount \"%s\"".printf(mount_point);
|
||||
Process.spawn_command_line_sync(cmd, out std_out, out std_err, out ret_val);
|
||||
if (ret_val != 0){
|
||||
log_error ("Failed to unmount device '%s' from mount point '%s'".printf(info.device, mount_point));
|
||||
@ -934,10 +934,10 @@ namespace TeeJee.DiskPartition{
|
||||
if (!mounted){
|
||||
//mount --------------
|
||||
if (mount_options.length > 0){
|
||||
cmd = "sudo mount -o %s \"%s\" \"%s\"".printf(mount_options, device, mount_point);
|
||||
cmd = "mount -o %s \"%s\" \"%s\"".printf(mount_options, device, mount_point);
|
||||
}
|
||||
else{
|
||||
cmd = "sudo mount \"%s\" \"%s\"".printf(device, mount_point);
|
||||
cmd = "mount \"%s\" \"%s\"".printf(device, mount_point);
|
||||
}
|
||||
|
||||
Process.spawn_command_line_sync(cmd, out std_out, out std_err, out ret_val);
|
||||
|
Loading…
Reference in New Issue
Block a user