Desktop integration: Button to create menu links

33 views
Skip to first unread message

Matt Wilkie

unread,
Aug 2, 2019, 12:55:52 AM8/2/19
to leo-editor
Commit d0ad9f810 to devel adds a [add-desktop-links] button to Desktop-integration.leo (under Settings menu).

When run it creates launch schortcuts for Leo on the Desktop and in Start Menu. It's supposed to work on all platforms but I've only tested on Windows -- so please test and report.

On Windows the shortcut starts Leo with messages console, so the main Leo gui and command prompt window. This could be set to be only the gui. (I decided against creating yet-another-button to offer the choice of both. speak up if you feel strongly. ;-)

-matt


Edward K. Ream

unread,
Aug 2, 2019, 9:06:55 AM8/2/19
to leo-editor
On Thu, Aug 1, 2019 at 11:55 PM Matt Wilkie <map...@gmail.com> wrote:

Commit d0ad9f810 to devel adds a [add-desktop-links] button to Desktop-integration.leo (under Settings menu).

The settings menu item looks good.  I haven't tested the buttons withing DI.leo and have no opinion about them.  You can fix complaints as they arise.  That is, I'm good with having this in 6.0 final.

Edward

Matt Wilkie

unread,
Aug 14, 2019, 5:19:13 PM8/14/19
to leo-editor
this is test. last message refused to post.

Matt Wilkie

unread,
Aug 14, 2019, 5:20:20 PM8/14/19
to leo-editor
The scripts to add and remove desktop and menu links now includes icons as well. Only in desktop-links branch so far because it relies on my fork of Shortcutter. To test:

git clone https://github.com/maphew/shortcutter.git
pip install
-e shortcutter

cd leo
-editor
git pull
git checkout desktop
-links

then:

Run Leo >> Settings >> Open desktop integration >> [add-desktop-links] button.


-matt


Matt Wilkie

unread,
Aug 14, 2019, 5:21:31 PM8/14/19
to leo-editor
Or any combination of:

python leo\scripts\add-desktop-links.leox
python leo
\scripts\remove-desktop-links.leox

leo --script leo\scripts\add-desktop-links.leox
leo
--script leo\scripts\remove-desktop-links.leox

------
Google groups wouldn't let me post everything as one message. It doesn't seem to like multiple <code> blocks in one message sometimes.

-matt
Reply all
Reply to author
Forward
0 new messages