~ubuntu-multiseat/ubuntu/saucy/unity-greeter/bug1201122

« back to all changes in this revision

Viewing changes to debian/patches/bug1201122.patch

  • Committer: a7x
  • Date: 2013-08-14 22:07:20 UTC
  • Revision ID: ubuntu-a7x@scientician.org-20130814220720-hae80f26gjx70vhs
revert to direct patching

trying to have a separate 3.0 (quilt) patch makes it hard to merge
upstream changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From: Alberts Muktupāvels <alberts.muktupavels@gmail.com>
2
 
Subject: Create state file for each seat
3
 
Origin: https://bazaar.launchpad.net/~albertsmuktupavels/unity-greeter/remember-last-logged-in-user-for-each-seat-and-show-gnome-badge-for-all-gnome-sessions/diff/937
4
 
Bug: https://bugs.launchpad.net/bugs/1201122
5
 
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1201122
6
 
 
7
 
--- a/src/unity-greeter.vala    2013-07-05 13:43:55 +0000
8
 
+++ b/src/unity-greeter.vala    2013-08-08 13:28:32 +0000
9
 
@@ -80,8 +80,11 @@
10
 
 
11
 
         var state_dir = Path.build_filename (Environment.get_user_cache_dir (), "unity-greeter");
12
 
         DirUtils.create_with_parents (state_dir, 0775);
13
 
+        
14
 
+        var xdg_seat = GLib.Environment.get_variable("XDG_SEAT");
15
 
+        var state_file_name = xdg_seat != null ? xdg_seat + "-state" : "state";
16
 
 
17
 
-        state_file = Path.build_filename (state_dir, "state");
18
 
+        state_file = Path.build_filename (state_dir, state_file_name);
19
 
         state = new KeyFile ();
20
 
         try
21
 
         {
22