mirror of
https://github.com/linuxmint/timeshift.git
synced 2024-09-11 17:07:43 +03:00
Use mtab to get mount point list
This commit is contained in:
parent
88da4ab5bd
commit
129b58c828
@ -2219,7 +2219,7 @@ public class Main : GLib.Object{
|
||||
|
||||
|
||||
public PartitionInfo? get_backup_device(){
|
||||
var list = get_mounted_partitions_using_df();
|
||||
var list = get_mounted_partitions_using_mtab();
|
||||
foreach(PartitionInfo info in list){
|
||||
if (info.mount_point_list.contains("/mnt/timeshift")){
|
||||
return info;
|
||||
@ -2289,7 +2289,7 @@ public class Main : GLib.Object{
|
||||
|
||||
public bool backup_device_online(){
|
||||
//check if mounted
|
||||
foreach(PartitionInfo info in get_mounted_partitions_using_df()){
|
||||
foreach(PartitionInfo info in get_mounted_partitions_using_mtab()){
|
||||
if (info.mount_point_list.contains(mount_point_backup)){
|
||||
return true;
|
||||
}
|
||||
|
@ -17,12 +17,12 @@ long_line_behaviour=1
|
||||
long_line_column=80
|
||||
|
||||
[files]
|
||||
current_page=0
|
||||
FILE_NAME_0=1298;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FMain.vala;0;4
|
||||
FILE_NAME_1=24732;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FMainWindow.vala;0;4
|
||||
current_page=1
|
||||
FILE_NAME_0=45104;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FMain.vala;0;4
|
||||
FILE_NAME_1=29486;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FMainWindow.vala;0;4
|
||||
FILE_NAME_2=14509;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FSettingsWindow.vala;0;4
|
||||
FILE_NAME_3=22108;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FRestoreWindow.vala;0;4
|
||||
FILE_NAME_4=18030;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FUtility.vala;0;4
|
||||
FILE_NAME_3=35945;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FRestoreWindow.vala;0;4
|
||||
FILE_NAME_4=24747;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FUtility.vala;0;4
|
||||
FILE_NAME_5=708;Make;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2Fmakefile;0;4
|
||||
FILE_NAME_6=813;Conf;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fdebian%2Fcontrol;0;4
|
||||
FILE_NAME_7=16;None;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fdebian%2Fchangelog;0;4
|
||||
|
Loading…
Reference in New Issue
Block a user