florentbr / OWON-VDS1022

Unofficial release for the OWON VDS1022/I Oscilloscope
259 stars 45 forks source link

Linux install issue in cf10 - unsure if it is me or the program #12

Closed ExordiumAndTerminus closed 3 years ago

ExordiumAndTerminus commented 3 years ago

Hi there - first off thanks for making a version of this software that works with the linux operating system - it is much appreciated!

I am having trouble running this program on my Elementary OS Linux build. I ran the linux install sh script setup through sudo apt install and it seemed to work fine. However, when I tried to execute it from the icon, it would act like it was doing something then disappear from the task bar.

Where did I go wrong from the install? It installed Java 11 as well. I did not plug in my owon scope yet, but figured the program should still function while disconnected...

Steps tried to remedy issue:

Thanks in advance for the help!

florentbr commented 3 years ago

I think the issue is related to file permission. Could you try this change in install-linux.sh line 327 and 330 :

324   copy () {
325       if [[ "$1" == */ ]] || [[ -d "$1" ]] ; then
326           mkdir -p "$1"
327 -         cp -r "${@:2}" "$1"
    +         cp --no-preserve=mode,ownership -r "${@:2}" "$1"
328       else
329           mkdir -p "$(dirname "$1")"
330 -         cp "${@:2}" "$1"
    +         cp --no-preserve=mode,ownership "$2" "$1"
331       fi
332   }

The modified install-linux.sh : https://raw.githubusercontent.com/florentbr/OWON-VDS1022/32357e8ffd350a6ac6d5b57d9eb0b73209f2e1d7/install-linux.sh

ExordiumAndTerminus commented 3 years ago

Hey that worked! Thanks for the help!

florentbr commented 3 years ago

fixed in release 1.0.33-cf11