Skip to content
Snippets Groups Projects
blisshome's avatar
blisshome authored
e4ac00b0
History
Name Last commit Last update
README.md
softlink.desktop

Soft Link

Name

Soft Link

Description

Context menu item for Dolphin file manager that creates a soft symbolic link to a single selected file and puts it in the same folder as the target file. The link name has "_lnk" appended to the target's name before the extension. "_lnk" is added to the link name because the the ln command does not allow a file and its soft symlink to have the same name and be located in the same folder. Designed to work with a file that has an extension, e.g. My File.txt. Will work with a file that has no extension, but the link ends up with the file name as its "false" extension (see Usage below). Works with a file that has spaces in its name (or extension...who does that?)

Installation

Put .desktop file in ~/.local/share/kio/servicemenus/.

Usage

  • With Extension: My File.txt --> My File_lnk.txt in same folder as the link target.

  • Without Extension (it works, but...): My File --> My File_lnk.My File in same folder as the link target (ugly "false" extension).

Roadmap

Process multiple files. Prevent "false" extension on file with no extension.

License

Copyright 2022 Thomas Zakrzewski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.