~ubuntu-branches/ubuntu/trusty/unity-place-files/trusty

« back to all changes in this revision

Viewing changes to src/main.vala

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-08-26 18:52:52 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20100826185252-rtxst6inf3chd7po
Tags: upstream-0.5.18
ImportĀ upstreamĀ versionĀ 0.5.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
  public static int main (string[] args)
26
26
    {
 
27
      GLib.Intl.textdomain (Config.PACKAGE);
 
28
      GLib.Intl.bindtextdomain (Config.PACKAGE, Config.LOCALEDIR);
 
29
      GLib.Intl.bind_textdomain_codeset (Config.PACKAGE, "UTF-8");
 
30
      GLib.Intl.setlocale(GLib.LocaleCategory.MESSAGES, "");
 
31
    
 
32
      DesktopAppInfo.set_desktop_env ("GNOME");
 
33
    
27
34
      var daemon = new Daemon ();
28
35
 
29
36
      /* Export the place daemon on the session bus */
41
48
          }
42
49
        else
43
50
          {
44
 
            print ("Another Files Place daemon appears to be running.\nBailing out.");
 
51
            print (_("Another Files Place daemon appears to be running.\nBailing out."));
45
52
            return 1;
46
53
          }
47
54
      } catch (DBus.Error error) {
48
 
        GLib.error ("Error connecting to session bus: %s.\nBailing out.", error.message);
 
55
        print (_("Error connecting to session bus: %s.\nBailing out."), error.message);
49
56
        return 2;
50
57
      }
51
58