Skip to content

Joplin command line install script fails on lubuntu #1422

@stevenirby

Description

@stevenirby

Operating system

  • Linux

Application

  • Desktop

I ran the install script on an lubuntu system (18.10) and the script fails to install Joplin.

This is because the variable $XDG_DATA_DIRS doesn't match the regex checks in the script

$XDG_DATA_DIRS == /usr/share/Lubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop

Also $XDG_CURRENT_DESKTOP is: LXQt

if [ "$XDG_CURRENT_DESKTOP" = "" ]
    then
      desktop=$(echo "$XDG_DATA_DIRS" | sed 's/.*\(xfce\|kde\|gnome\).*/\1/')
    else
      desktop=$XDG_CURRENT_DESKTOP
fi
 if [[ $desktop =~ .*gnome.*|.*kde.*|.*xfce.*|.*mate.* ]]

The end result is a message saying:

Create Desktop icon.
NOT DONE

At the very least, maybe a better error message could be shown if Joplin won't run in this enviorment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions