Giter VIP home page Giter VIP logo

blnk's People

Contributors

poikilos avatar

Watchers

 avatar

blnk's Issues

Generate URLs in a style such that KDE can launch them.

Example (generated by dragging a website address to the KDE desktop):

[Desktop Entry]
Icon=text-html
Name=https://github.com/poikilos/EnlivenMinetest/issues/403
Type=Link
URL[$e]=https://github.com/poikilos/EnlivenMinetest/issues/403

Related issues:

Re-implement the application shortcut (but use NoDisplay)

NoDisplay is for applications that can be selected to be associated with a mimetype (and possibly other places) but should not be shown in menus.

[Desktop Entry]
Exec=.../.local/bin/blnk
MimeType=text/blnk;
NoDisplay=true
Name=blnk
Type=Application
  • (done in 9478b86) implement installing a shortcut on Linux.
  • (done in 9478b86) implement associating the program with the extension.
  • implement NoDisplay is false

Consider splitting morefolders into a separate repo and require it.

So far, morefolders.py is used as a module by blnk and my world_clock fork.


# TODO: Integrate more programs:

grep "Application Support" -r --include \*.py
blnk/blnk.py:        AppData = os.path.join(Library, "Application Support")
blnk/blnk.py:        LocalAppData = os.path.join(Library, "Application Support")
linux-preinstall/linuxpreinstall/__init__.py:        AppData = os.path.join(Library, "Application Support")
linux-preinstall/linuxpreinstall/__init__.py:        LocalAppData = os.path.join(Library, "Application Support")
linux-preinstall/migration/migrateconfig.py:    os.path.join("Library", "Application Support", "Firefox", "Profiles")
linux-preinstall/build/lib/linuxpreinstall/__init__.py:        AppData = os.path.join(Library, "Application Support")
linux-preinstall/build/lib/linuxpreinstall/__init__.py:        LocalAppData = os.path.join(Library, "Application Support")
world_clock/worldclocktk/__init__.py:        AppData = os.path.join(Library, "Application Support")
world_clock/worldclocktk/__init__.py:        LocalAppData = os.path.join(Library, "Application Support")
world_clock/build/lib/worldclocktk/__init__.py:        AppData = os.path.join(Library, "Application Support")
world_clock/build/lib/worldclocktk/__init__.py:        LocalAppData = os.path.join(Library, "Application Support")
nopackage/nopackage/__init__.py:    # TODO: use "Application Support" directory on darwin.

# Consider adding this to common, or eliminating common.py:
find -iname "common.py"
./KivyGlops/kivyglops/common.py
./KivyPixels/kivypixels/common.py
./KivyGlops-audit-3a66898/common.py
./KivyGlops-stable/common.py
./DigitalMusicMC/dmmc/common.py
./DigitalMusicMC/build/lib/dmmc/common.py
./digitalmusicmc/dmmc/common.py
./KivyGlops-audit-9f43bc3/kivyglops/common.py
./PrusaSlicer/deps/build/dep_Boost-prefix/src/dep_Boost/tools/build/src/tools/common.py
./PrusaSlicer/deps/build/dep_wxWidgets-prefix/src/dep_wxWidgets/docs/doxygen/scripts/common.py

# Maybe don't integrate the following which only use trivial code...
# only HOME & DOWNLOADS:
~/git/gearlib/langdump.py *
~/git/pycodetool/pycodetool/io_csharptopython.py *
# only HOME:
~/git/linux-preinstall/linuxpreinstall/thumbnails.py
~/git/gearlib/pyopenscad/lang/translate.py
~/git/rotocanvas/channeltinkerpil/imageprocessorframe.py
~/git/linux-preinstall/linuxpreinstall/thumbnails.py
~/git/pycodetool/pycodetool/csharp.py *

#*The program uses Pathlib, making it require Python 3.4+

Implement environment variables in a standardized way.

Using URL[$e] (at least for new shortcuts) will make the format more standardized. The new standard way of doing this (at least known to work in KDE) is by using [$e] to enable environment variables:

[Desktop Entry]
Type=Link
URL[$e]=$HOME/Documents/unnumbered/Spirits of Namaman.png

The separate mimetype will still be necessary for the following cases:

  • For cross-platform compatibility (such as when using Nextcloud)
  • When using ~ to represent HOME
  • When using variables when on windows.

The following doesn't work according to standards, but for backward compatibility with older versions of blnk, it could be forced to work:

[Desktop Entry]
Type=Link
URL=$HOME/Documents/unnumbered/Spirits of Namaman.png
  • fails since [$e] is required to enable environment variables

GNOME doesn't support $e: https://forum.kde.org/viewtopic.php?t=32909, but blnk could overcome this by having its own MIME type for shortcuts.

For the most compatibility, $e could be excluded when not necessary as per issue #3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.