[Xfce4-commits] <postler:master> Don't create .desktop file for messaging menu
Christian Dywan
noreply at xfce.org
Thu Aug 4 03:20:02 CEST 2011
Updating branch refs/heads/master
to 7754370138d576ddea55975c2088fb1b97b3be3c (commit)
from a2ce2f6d6a1ef3ad10649c8cd71a7e77c7865159 (commit)
commit 7754370138d576ddea55975c2088fb1b97b3be3c
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Aug 3 22:08:06 2011 +0200
Don't create .desktop file for messaging menu
The service is running and autostarted if you have accounts, and
if you want to open Postler, you use a launcher.
postler/postler-accounts.vala | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/postler/postler-accounts.vala b/postler/postler-accounts.vala
index 6a49750..371c7b2 100644
--- a/postler/postler-accounts.vala
+++ b/postler/postler-accounts.vala
@@ -207,21 +207,9 @@ public class Postler.Accounts : GLib.Object {
FileUtils.set_contents (account_file, keyfile.to_data ());
unowned string config_dir = Environment.get_user_config_dir ();
- unowned string indicator_dir = "/indicators/messages/applications";
- string indicator_path = config_dir + indicator_dir;
- string filename = indicator_path + "/postler.desktop";
- bool exists = FileUtils.test (filename, FileTest.EXISTS);
- if (infos.length () != 0 && !exists) {
- DirUtils.create_with_parents (indicator_path, 0700);
- FileUtils.set_contents (filename,
- Config.DATADIR + "/applications/postler.desktop");
- }
- else if (infos.length () == 0)
- FileUtils.unlink (filename);
-
string autostart_path = config_dir + "/autostart";
- filename = autostart_path + "/postler.desktop";
- exists = FileUtils.test (filename, FileTest.EXISTS);
+ string filename = autostart_path + "/postler.desktop";
+ bool exists = FileUtils.test (filename, FileTest.EXISTS);
if (infos.length () != 0 && !exists) {
DirUtils.create_with_parents (autostart_path, 0700);
FileUtils.set_contents (filename,
More information about the Xfce4-commits
mailing list