<span class="Apple-style-span" style="font-family: &#39;Times New Roman&#39;; font-size: 16px; "><div><span class="Apple-style-span" style="font-family: arial; font-size: 13px; ">Hello again!  I thought I&#39;d follow up on KDE Portable.</span></div>
</span><div><div><br></div><div>I&#39;ve had some extra comments added by kraplax and SaroEngels in #kde-windows; some environment variables used are KDEWIN_DIR, KDEROOT and KDEDIRS which should all be the same.  I&#39;m not sure if these are needed at all but they don&#39;t seem to be in my testing.  For data storage, I&#39;ve now tested running applications with KDEHOME (and HOME, XDG_CONFIG_DIR set to other spots) and changing it moves all data, so that bit&#39;s easy.</div>
<div><br></div><div>A thing which I forgot to mention in my original message was about drive letter updating.  I think that this would just have to be manually tracking down each app which stores absolute file locations (mainly MRU [recent files] lists) and updating it.  It&#39;s easy to do with a find and replace (there&#39;s a ReplaceInFile macro we use for NSIS at PortableApps.com, a Qt solution would probably be more difficult but not hard).</div>
<div><br></div><div>How much interest is there for this?  I think that the best way it&#39;s going to work is having your developers doing the work; I can advise and be a general consultant, but the best way to do it is all in Qt, integrated into the KDE for Windows project, and I can&#39;t really help with the actual coding.  If you like, I could provide a mockup of how I think it should be with the Qt Designer and send that round.</div>
</div><div><br></div><br><div class="gmail_quote">On Sat, Jul 4, 2009 at 4:06 PM, Chris Morgan <span dir="ltr">&lt;<a href="mailto:chris.morganiser@gmail.com">chris.morganiser@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi!  I&#39;m a developer from <a href="http://PortableApps.com" target="_blank">PortableApps.com</a>, and I&#39;ve taken an interest in KDE for Windows, and specifically in making it portable.<div><br></div><div>I&#39;ve had some ideas, some of which I&#39;ve discussed in #kde-windows, and others which I have just pondered.  To start with, I&#39;ll briefly overview the important details of the PortableApps.com Format.  Everything belongs in what by default is X:\PortableApps\KDEPortable (but it can be anything).  Another way some things can be done is shared libraries in e.g. X:\PortabelApps\CommonFiles\KDE, (e.g. Java), however I don&#39;t think this is the best way of doing it with KDE (feel free to correct me, I don&#39;t know terribly much about the framework). Inside the KDEPortable directory, you&#39;d have App\KDE, being what would normally be C:\Program Files\KDE.  Data gets stored in KDEPortable\Data.  I was told in #kde-windows that changing the environment variable KDEHOME should redirect all data, which is very convenient (otherwise it&#39;d be very difficult to do it all).<div>


<div><br></div><div>It seems to me that the easiest way of doing it would be the following:<div><ol><li>Have a modified version of the package manager/installer, which overrides the installation directory to App\KDE, and <b>cleans up the installation files</b> so that nothing is left behind on the host machine (putting them on the USB drive would be too slow, but you can&#39;t just leave them behind in TEMP).  Also, rather than registering executables in the start menu, put them into some format which the KDE Portable launcher can find.</li>

<li><b>KDE Portable launcher:</b> due to the lack of the start menu, we&#39;d need a KDE app launcher.  This could be responsible for changing KDEHOME, or an ordinary NSIS launcher could do it.  I could do this in AutoHotkey easily enough, but I reckon that a C++/Qt one would be better for consistency; I think it&#39;d be better overall if you did it all, with me for advice on the PortableApps.com side of things.  I think a ListView/QListView-based system would be best and easiest, but you&#39;re the experts.</li>


</ol><div><b>Naming: </b>would you prefer it to be called <i>KDE for Windows, Portable Edition</i>, <i>KDE Portable</i>, <i>KDE for Windows Portable</i>, or something else?  I&#39;m guessing <i>KDE for Windows, Portable Edition</i>.  FYI, Mozilla apps we&#39;ve got Portable Editions of because of Mozilla licensing restrictions, everything else is just Portable.  But if the whole product name is <i>KDE for Windows</i>, adding <i>Portable Edition</i> may be better than just Portable.</div>

</div><div><br></div><div>I hope I&#39;ve made sense, and you can understand what I&#39;m wanting and suggesting.  What do you think?<br clear="all"><br></div><div><br>Thanks,<br><br>Chris Morgan &lt;<a href="mailto:chris.morganiser@gmail.com" target="_blank">chris.morganiser@gmail.com</a>&gt;<br>



<br><br>I don&#39;t need a quote in my signature.  It&#39;s hard enough surviving as it is without having to find a meaningful quote.  Will you forgive me?  Or don&#39;t you read this bit?<br>
</div>
</div></div>
</div>
</blockquote></div><br><br clear="all"><br>Greetings,<br><br>Chris Morgan &lt;<a href="mailto:chris.morganiser@gmail.com">chris.morganiser@gmail.com</a>&gt;<br><br><br>I don&#39;t need a quote in my signature.  It&#39;s hard enough surviving as it is without having to find a meaningful quote.  Will you forgive me?  Or don&#39;t you read this bit?<br>