From 36e8e4e5616f967b09e67abe259626e9fa6eb097 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Mon, 17 Dec 2007 18:35:59 -0700
Subject: [PATCH] do not put a link from the welcoXme page to the start.html if
 there is not a private directory

---
 src/allmydata/webish.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py
index 0832f61c..ba1d71ea 100644
--- a/src/allmydata/webish.py
+++ b/src/allmydata/webish.py
@@ -1336,7 +1336,8 @@ class Root(rend.Page):
     def render_private_vdrive(self, ctx, data):
         basedir = IClient(ctx).basedir
         start_html = os.path.abspath(os.path.join(basedir, "private", "start.html"))
-        if os.path.exists(start_html):
+        basedir = IClient(ctx).basedir
+        if os.path.exists(start_html) and os.path.exists(os.path.join(basedir, "private", "my_private_dir.cap")):
             return T.p["To view your personal private non-shared filestore, ",
                        "use this browser to open the following file from ",
                        "your local filesystem:",
-- 
2.45.2