aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/misc/formatter/fix-paths.patch
blob: 67c1d2b43cccb085482295e1e6e24f8ff0188b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff --git a/src/Objects/DeviceFormatter.vala b/src/Objects/DeviceFormatter.vala
index cf6a3b8..0de10a9 100644
--- a/src/Objects/DeviceFormatter.vala
+++ b/src/Objects/DeviceFormatter.vala
@@ -62,42 +62,42 @@ namespace Formatter {
             string drive_identifier = drive.get_identifier ("unix-device");
             switch (filesystem) {
                 case Formatter.Filesystems.EXT4:
-                    spawn_args = {"pkexec", "mkfs.ext4", drive_identifier, "-F"};
+                    spawn_args = {"pkexec", "@ext4@", drive_identifier, "-F"};
                     if (label != "") {
                         spawn_args += "-L";
                         spawn_args += label;
                     }
                     break;
                 case Formatter.Filesystems.EXFAT:
-                    spawn_args = {"pkexec", "mkfs.exfat", drive_identifier};
+                    spawn_args = {"pkexec", "@exfat@", drive_identifier};
                     if (label != "") {
                         spawn_args += "-n";
                         spawn_args += label;
                     }
                     break;
                 case Formatter.Filesystems.FAT16:
-                    spawn_args = {"pkexec", "mkfs.fat", "-F16", "-I", drive_identifier};
+                    spawn_args = {"pkexec", "@fat@", "-F16", "-I", drive_identifier};
                     if (label != "") {
                         spawn_args += "-n";
                         spawn_args += label;
                     }
                     break;
                 case Formatter.Filesystems.FAT32:
-                    spawn_args = {"pkexec", "mkfs.fat", "-F32", "-I", drive_identifier};
+                    spawn_args = {"pkexec", "@fat@", "-F32", "-I", drive_identifier};
                     if (label != "") {
                         spawn_args += "-n";
                         spawn_args += label;
                     }
                     break;
                 case Formatter.Filesystems.NTFS:
-                    spawn_args = {"pkexec", "mkfs.ntfs", drive_identifier, "-f", "-F"};
+                    spawn_args = {"pkexec", "@ntfs@", drive_identifier, "-f", "-F"};
                     if (label != "") {
                         spawn_args += "-L";
                         spawn_args += label;
                     }
                     break;
                 case Formatter.Filesystems.HFS_PLUS:
-                    spawn_args = {"pkexec", "mkfs.hfsplus", drive_identifier};
+                    spawn_args = {"pkexec", "@hfsplus@", drive_identifier};
                     if (label != "") {
                         spawn_args += "-v";
                         spawn_args += label;