With b380d72
<https://github.com/leo-editor/leo-editor/commit/b380d72f300c2c534cd8cb687f9e5b0a03cd5ed5>
there's no longer a need to manually launch Leo or a command shell as
administrator. Yay!
register-leo.leox fully working, inc. re-launch elevated
>>
>> So now both register and unregister work, and we no longer require the
>> user to manually launch Leo or a CMD shell as administrator. Leo prompts
>> for elevation at run time.
>>
>> What's not good: we're using cross-file clones between the scripts
>> because of the shared request elevation and related code. Have to figure
>> out how to combine these into a single script, or maybe even move into
>> Leo itself(?)
>>
>
The prompt for elevation from just python on the command line does not
work. I haven't dug into it because now that we can fire from inside Leo
it's less necessary.
To try this out:
- git checkout out the *desktop-links* branch
- Run Leo
- File >> Open specific leo file >> scripts.leo
- Navigate to "Scripts-->@file leoScripts.txt-->Windows-only
scripts-->@file register-leo.leox"
- Slap [Ctrl-B] (or use [script-button])
- You should be asked to confirm relaunch as Administrator
- Open a folder containing .leo files and verify they sport Leo's
icon
- and/or verify Regedit "Computer\HKEY_CLASSES_ROOT\Leo.File" exists
Repeat with *un*register-leo.leox to remove.
--matt
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.