Thursday, 26 October 2023

[Windoof] create symlink

New-Item -ItemType symboliclink -Path <path to location> -Name <the name> -Value <path to target>

e.g. New-Item -ItemType symboliclink -Path C:\Users\thiemo -Name link_to_target -Value C:\Users\thiemo\Downloads
MKLINK [[/D] | [/H] | [/J]] Verknüpfung Ziel

        /D           Erstellt eine symbolische Verknüpfung für ein Verzeichis.
                     Standardmäßig wird eine symbolische Verknüpfung für
                     eine Datei erstellt.
        /H           Erstellt eine feste Verknüpfung anstelle einer
                     symbolischen Verknüpfung.
        /J           Erstellt eine Verzeichnisverbindung.
        Verknüpfung  Gibt den Namen für die symbolischen Verknüpfung an.
        Ziel         Gibt den Pfad (relativ oder absolut) an, auf den die
                     neue Verknüpfung verweist.
                     
e.g. MKLINK /D C:\Users\thiemo\link_to_target /J C:\Users\thiemo\Downloads
Both examples result in a symbolic link, file path C:\Users\thiemo\link_to_target, pointing to C:\Users\thiemo\Downloads

Tuesday, 17 October 2023

[KDE] A menu entry does not start the application complaining about permission problem

 I lately created a menu entry for an application not providing one on its own. As I manage some of my stuff in Subversion, I placed a symlink in ~/.local/share/applications pointing to the file in my local checkout of my repository. Trying to start it, KDE complains about permission problems. It turns out that "it" is not able to handle symlinks properly.

[git] Create a local branch from another branch

From the active branch git checkout -b <LOCAL_BRANCH> From a donator branch git checkout -b <LOCAL_BRANCH> <DONATING_BRANCH...