[gnome-shell] autorun: fix a typo in a variable name
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] autorun: fix a typo in a variable name
- Date: Mon, 3 Oct 2011 20:36:38 +0000 (UTC)
commit 751d2504714b649515e979cc205cea5e5b68df38
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Oct 3 16:17:32 2011 -0400
autorun: fix a typo in a variable name
The variable |type| doesn't exist here; what we want to do is using the
first member of the contentTypes array instead.
Probably a leftover of some refactoring of the code I did while working
on this.
This patch fixes starting of the default application for a given content
type if the control-center panel is set to run it when a device is
plugged.
https://bugzilla.gnome.org/show_bug.cgi?id=660821
js/ui/autorunManager.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/autorunManager.js b/js/ui/autorunManager.js
index c4671e2..5843db4 100644
--- a/js/ui/autorunManager.js
+++ b/js/ui/autorunManager.js
@@ -491,7 +491,7 @@ AutorunTransientDispatcher.prototype = {
let app = null;
if (setting == AutorunSetting.RUN) {
- app = Gio.app_info_get_default_for_type(type, false);
+ app = Gio.app_info_get_default_for_type(contentTypes[0], false);
} else if (setting == AutorunSetting.FILES) {
app = Gio.app_info_get_default_for_type('inode/directory', false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]