[gnome-boxes] Make sure 'QEMU Session' exists at startup
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Make sure 'QEMU Session' exists at startup
- Date: Fri, 7 Sep 2012 10:29:36 +0000 (UTC)
commit fa307071db85613835f682253fed4d91b487afa4
Author: Christophe Fergeau <cfergeau redhat com>
Date: Fri Sep 7 11:45:22 2012 +0200
Make sure 'QEMU Session' exists at startup
Without it, Boxes fails to start:
(gnome-boxes:19000): Boxes-WARNING **: app.vala:322: No such file or directory
error: missing or failing default libvirt connection
$
At startup, Boxes creates this file if ~/.config/gnome-boxes/sources/
does not exist. It's better to directly check for the file we are
interested in. Reason for this patch is that while testing other patches,
this file went missing...
https://bugzilla.gnome.org/show_bug.cgi?id=683558
src/app.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 195e64c..58d2842 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -305,7 +305,7 @@ private class Boxes.App: Boxes.UI {
private async void setup_sources () {
- if (!has_user_pkgconfig_sources ()) {
+ if (!FileUtils.test (get_user_pkgconfig_source ("QEMU Session"), FileTest.IS_REGULAR)) {
var src = File.new_for_path (get_pkgdata_source ("QEMU_Session"));
var dst = File.new_for_path (get_user_pkgconfig_source ("QEMU Session"));
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]