Re: LEO file association on windows vista

2010-09-19 Thread Matt Wilkie
> Uttara.ca seems hacked. Now you get sexual products propaganda on this link.

yech! Not hacked. I let the domain lapse and moved my stuff to
http://www.maphew.com/How_To/Installing_Leo_Editor_on_Windows. It
never occurred to me someone else would pick up the name. It's not
like I ever got a lot of traffic or anything. my apologies to anyone
who follows these old links. sorry I can't do anything about it now!

-matt

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-edi...@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.



Re: LEO file association on windows vista

2010-09-18 Thread Offray Vladimir Luna Cárdenas

 Hi,

El 25/08/09 15:31, Matt Wilkie escribió:

...looks like I erred on the side of brevity when penned those
instructions up, and then line-breaks and backslashes were discarded
when converted to Sphinx docs.

I've posted a pretty print version at
http://www.uttara.ca/blog/install/installing-leo-editor-on-windows
which should make the line breaks clearer, and the differences between
cmd prompt commands and interactive ones.

-matt



Uttara.ca seems hacked. Now you get sexual products propaganda on this link.

Cheers,

Offray

--
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-edi...@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.



Re: LEO file association on windows vista

2009-08-26 Thread brian

I found the problem.  When I copy and pasted the ftype from the
website, it gives me the wrote quotes.  I copied from the online doc,
pasted into notepad, changed the paths and then pasted in a cmd
window.  This didn't work.  When I replaced the quotes it worked.

I figured out how to get windows vista to show the leo icon for .leo
files.  I based it on 
http://littleway.blogspot.com/2007/12/change-file-extension-icon-in-windows.html
and my old xp setup.  I basically went to regedit->HKEY_CLASSES_ROOT-
>leoFile   and added the key DefaultIcon=C:\Program Files\leo\current
\leo\Icons\LeoDoc.ico,0.  For my setup I made  C:\Program Files\leo
\current a junction to C:\Program Files\leo\Leo-4-6-2-final.

Brian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: LEO file association on windows vista

2009-08-25 Thread rhh

Another vista option.

Create a text file and name it leostart.cmd

Put the following commands (or something similar) in the file


set PYTHONHOME=c:\python25
set PYTHONPATH=c:\python25
C:\Python25\python.exe c:\python25\lib\site-packages\leo-4-6-2-final
\launchleo.py   %1 --gui=tk



where you adjust the directories, gui (which is qt by default) and leo
version to match what you want or have. From file manager right click
on a .leo file and chose "open with".  Navigate to the leostart.cmd
file, select it and tag it as default.  Any .leo file that you click
on will now open with the leo gui.



On Aug 25, 5:05 pm, "Edward K. Ream"  wrote:
> On Tue, Aug 25, 2009 at 3:31 PM, Matt Wilkie  wrote:
>
> > > ...looks like I erred on the side of brevity when penned those
> > > instructions up, and then line-breaks and backslashes were discarded
> > > when converted to Sphinx docs.
>
> > I've posted a pretty print version at
> >http://www.uttara.ca/blog/install/installing-leo-editor-on-windows
> > which should make the line breaks clearer, and the differences between
> > cmd prompt commands and interactive ones.
>
> Thanks.  I'll make the corresponding changes in leoDocs.leo and on the web.
>
> Edward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: LEO file association on windows vista

2009-08-25 Thread Edward K. Ream
On Tue, Aug 25, 2009 at 3:31 PM, Matt Wilkie  wrote:

>
> > ...looks like I erred on the side of brevity when penned those
> > instructions up, and then line-breaks and backslashes were discarded
> > when converted to Sphinx docs.
>
> I've posted a pretty print version at
> http://www.uttara.ca/blog/install/installing-leo-editor-on-windows
> which should make the line breaks clearer, and the differences between
> cmd prompt commands and interactive ones.


Thanks.  I'll make the corresponding changes in leoDocs.leo and on the web.

Edward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: LEO file association on windows vista

2009-08-25 Thread Matt Wilkie

> ...looks like I erred on the side of brevity when penned those
> instructions up, and then line-breaks and backslashes were discarded
> when converted to Sphinx docs.

I've posted a pretty print version at
http://www.uttara.ca/blog/install/installing-leo-editor-on-windows
which should make the line breaks clearer, and the differences between
cmd prompt commands and interactive ones.

-matt

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: LEO file association on windows vista

2009-08-25 Thread Matt Wilkie

> I'm having trouble with the directions at
> http://webpages.charter.net/edreamleo/install.html#installing-leo-on-windows.
>
> For step 5 I'm not sure what it means by setting up a short-cut
> “Target = C:Python25pythonw.exe “C:Python25Libsite-
> packagesleolaunchLeo.py” Start in = D:code ”.  Target isn't a dos
> command.  I don't understand how to do this.

...looks like I erred on the side of brevity when penned those
instructions up, and then line-breaks and backslashes were discarded
when converted to Sphinx docs. Step 5 is GUI interactive, not command
line:

Create a desktop shortcut (or wherever):
   r-click on desktop > New > Shortcut > Target:
c:\Python25\pythonw.exe > Name: Leo Editor > ok, ok
   Select shortcut > Properties:
 change Target to: C:Python25\pythonw.exe
"C:Python25\Lib\site-packages\leo\launchLeo.py"
 set Start in to: D:\code (or My Documents or wherever you
want the default location to be)


> I skipped step 5 and moved on to step 6 with ftype and assoc.
> ... It took me a while
> to figure out ftype and assoc were 2 separate commands.  I tried these
> dos commands:
> --
> ftype LeoFile="C:\Program Files\Python26\python.exe" "C:\Program 
> Files\leo\Leo-4-6-2-final\launchLeo.py" "%1"
>
> assoc .leo=LeoFile
> --

This looks correct to me. Perhaps it is a Vista specific issue. This
page says to open a command prompt with elevated priviliges before
running ftype and assoc:
http://www.mydigitallife.info/2008/06/20/how-to-unassociate-file-types-and-remove-file-extension-associations-in-windows-vista/


> note:  I changed pythonw.exe to python.exe.  When I double click
> a .leo file, I get a flash of the python console and leo never pops
> up.

Python.exe (no w) starts a console window, and thus possibly some
messages, before starting the main .py app. I don't know how to grab
those console messages for later inspection. Pythonw.exe goes straight
to the windowed app.

Try activating via the association from the command prompt and see if
there are any errors:

   C:\> Start "\path\to\some\foobar.leo"

And if that doesn't illuminate perhaps the ftype parameter from the prompt:

   "C:\Program Files\Python26\python.exe" "C:\Program
Files\leo\Leo-4-6-2-final\launchLeo.py" "\path\to\myleodoc.leo"

cheers

-- 
-matt

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



LEO file association on windows vista

2009-08-25 Thread brian

I'm having trouble setting up the file association on windows vista so
that when I double click on a file it opens leo with that file.  I
didn't have problems setting up windows xp for this.

I'm having trouble with the directions at
http://webpages.charter.net/edreamleo/install.html#installing-leo-on-windows.

For step 5 I'm not sure what it means by setting up a short-cut
“Target = C:Python25pythonw.exe “C:Python25Libsite-
packagesleolaunchLeo.py” Start in = D:code ”.  Target isn't a dos
command.  I don't understand how to do this.

I skipped step 5 and moved on to step 6 with ftype and assoc.  The doc
looks link one command .  It took me a while
to figure out ftype and assoc were 2 separate commands.  I tried these
dos commands:
--
ftype LeoFile="C:\Program Files\Python26\python.exe" “C:\Program Files
\leo\Leo-4-6-2-final\launchLeo.py" "%1”

assoc .leo=LeoFile
--
note:  I changed pythonw.exe to python.exe.  When I double click
a .leo file, I get a flash of the python console and leo never pops
up.

Brian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---