Coder Social home page Coder Social logo

Comments (8)

BlueDrink9 avatar BlueDrink9 commented on May 21, 2024

Easily fixed by changing AppRun script line 33.
I have removed the find-up function in mine. It returned a relative path (i.e. ".") which wasn't recognised by the rest of the script.
Instead I have replaced it with a (supposedly) more reliable command to get the current path, found on stack overflow

My version now looks like:

#!/bin/bash

set -e

# Be verbose if $DEBUG=1 is set
if [ ! -z "$DEBUG" ] ; then
  env
  set -x
fi

THIS="$0"
args=("$@") # http://stackoverflow.com/questions/3190818/
NUMBER_OF_ARGS="$#"

# Please do not change $VENDORPREFIX as it will allow for desktop files
# belonging to AppImages to be recognized by future AppImageKit components
# such as desktop integration daemons
VENDORPREFIX=appimagekit


if [ -z $APPDIR ] ; then
  # Find the AppDir. It is the directory that contains AppRun.
  # This assumes that this script resides inside the AppDir or a subdirectory.
  # If this script is run inside an AppImage, then the AppImage runtime
  # likely has already set $APPDIR
  # This command gets the absolute path this script is in. (EG /home/user/bin)
  # See stackoverflow.com/questions/4774054
  APPDIR=$(dirname "$(realpath -s "$0")")
fi

from onenote.

BlueDrink9 avatar BlueDrink9 commented on May 21, 2024

Would have PRed myself, but couldn't find the original files.

from onenote.

p3x-robot avatar p3x-robot commented on May 21, 2024

sorry, i exchanged a package.json dependencies electron to devDependencies because the build AppImage (which is in the releases) it only allow in devDependencies.
My bad.
Try now, it will work. Sorry.

The exact npm install is:
sudo npm install -g p3x-onenote --unsafe-perm=true --allow-root

As of the AppImage @ https://github.com/patrikx3/onenote/releases/tag/1.0.297-181

for me it works.

What is the error? Which Linux?

from onenote.

p3x-robot avatar p3x-robot commented on May 21, 2024

The issue is that for npm the electron needs to be in dependencies, but to build in AppImage, the electron needs to be in devDependencies.

And last time if exchanged and that's why it was not working in npm.
Now it works with both ways.

from onenote.

p3x-robot avatar p3x-robot commented on May 21, 2024

I just don't know how to change the AppImage, what Linux distro do you have? How come it not working? I tried any dir it just works.

from onenote.

BlueDrink9 avatar BlueDrink9 commented on May 21, 2024

When I'm next at the machine I'll give more details. Fedora 22, non-root. Wasn't installing, just running from AppImage. Manually setting $APPDIR in a terminal to the absolute path of the appimage caused it to work fine

from onenote.

p3x-robot avatar p3x-robot commented on May 21, 2024

Well, AppImage-s I use all in /opt and I have it in the PATH and that's all, besides, it provides a menu as well, so it is enough to click.

from onenote.

p3x-robot avatar p3x-robot commented on May 21, 2024

@BlueDrink9
i set a settings, so you can disable the hiding if the tray is not working
https://github.com/patrikx3/onenote#latest-gnome-with-dash-to-panel

from onenote.

Related Issues (20)

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.