Skip to content

Commit 6a28513

Browse files
committed
Update features
1 parent 0d62b5d commit 6a28513

3 files changed

Lines changed: 19 additions & 5 deletions

File tree

features.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ Change Power Mode,yes,yes,yes,yes,yes,yes,yes,no,yes,?,yes,-,-,-,-,
3131
Change user profile,yes,-,-,-,yes,-,yes,-,no,-,yes,yes,yes,yes,no,
3232
hardinfo,yes,yes,yes,yes,yes,yes,yes,yes,yes,?,no *,-,-,-,-,*) Fedora does not package hardinfo anymore
3333
redshift,yes,yes,yes,yes,yes,yes,yes,yes,yes,?,yes,yes,yes,yes,yes,
34+
makeCurrentUserToAdministrator,?,yes,yes,yes,yes,yes,yes,yes,yes,?,yes,-,-,-,-,
35+
setupSnapAndInstallSnapStore,?,yes,yes,yes,yes,yes,yes,yes,yes,no,yes,-,-,-,-,
36+
Commands in Searchbar,?,-,-,-,-,-,-,-,-,-,-,yes,yes,yes,yes,
37+
AutomaticRepairOfPackageManager,?,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,-,-,-,-,

lib/content/basic_entries.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ List<ActionEntry> getBasicEntries(BuildContext context) {
175175
),
176176
disableEntryIf: () {
177177
return Linux.currentenvironment.installedSoftwareManagers
178-
.contains(SOFTWARE_MANAGERS.SNAP);
178+
.contains(SOFTWARE_MANAGERS.SNAP) ||
179+
Linux.currentenvironment.distribution == DISTROS.OPENSUSE;
179180
},
180181
),
181182
ActionEntry(

lib/services/linux.dart

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,14 +2372,23 @@ class Linux {
23722372
userId: 0,
23732373
command: "/usr/bin/dnf install -y snapd",
23742374
));
2375-
}
2376-
if (currentenvironment.installedSoftwareManagers
2377-
.contains(SOFTWARE_MANAGERS.ZYPPER)) {
23782375
commandQueue.add(LinuxCommand(
23792376
userId: 0,
2380-
command: "/usr/bin/zypper install -y snapd",
2377+
command: "ln -s /var/lib/snapd/snap /snap",
2378+
));
2379+
commandQueue.add(LinuxCommand(
2380+
userId: 0,
2381+
command: "/usr/bin/snap install snapd",
23812382
));
23822383
}
2384+
// openSUSE is a bit more complicated: https://snapcraft.io/install/snapd/opensuse
2385+
// if (currentenvironment.installedSoftwareManagers
2386+
// .contains(SOFTWARE_MANAGERS.ZYPPER)) {
2387+
// commandQueue.add(LinuxCommand(
2388+
// userId: 0,
2389+
// command: "/usr/bin/zypper install -y snapd",
2390+
// ));
2391+
// }
23832392

23842393
commandQueue.add(LinuxCommand(
23852394
userId: 0,

0 commit comments

Comments
 (0)