[gnome-games/wip/exalm/rebrand: 8/102] application: Drop is_running_in_flatpak()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 8/102] application: Drop is_running_in_flatpak()
- Date: Thu, 8 Apr 2021 21:29:43 +0000 (UTC)
commit f3d0a03f61edd659966822b22883af1a76f6aeba
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Mar 24 02:25:17 2021 +0500
application: Drop is_running_in_flatpak()
We needed it for CommandRunner.
src/ui/application.vala | 13 -------------
1 file changed, 13 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 8ff9e7b6..6fba4d4a 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -4,8 +4,6 @@ public class Games.Application : Gtk.Application {
const string HELP_URI = "https://wiki.gnome.org/Apps/Games/Documentation";
const string TEST_QUERY = "SELECT nie:url(?f) WHERE { ?f fts:match 'test query to check tracker' }";
- private static bool? is_flatpak;
-
private Database database;
private PreferencesWindow preferences_window;
@@ -154,17 +152,6 @@ public class Games.Application : Gtk.Application {
}
}
- public static bool is_running_in_flatpak () {
- if (is_flatpak != null)
- return is_flatpak;
-
- var file = File.new_for_path ("/.flatpak-info");
-
- is_flatpak = file.query_exists ();
-
- return is_flatpak;
- }
-
public void add_game_files () {
var chooser = new Gtk.FileChooserDialog (
_("Select game files"), window, Gtk.FileChooserAction.OPEN,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]