prikhi / pencil

DEPRECATED: Multiplatform GUI Prototyping/Wireframing
https://github.com/evolus/pencil
GNU General Public License v2.0
1.92k stars 193 forks source link

/usr/bin/pencil opens Firefox only #688

Open aboettger opened 9 years ago

aboettger commented 9 years ago

This fix works for me:

#!/bin/sh

APP_INI="/usr/share/evolus-pencil/application.ini"

if [ -x /usr/bin/xulrunner ]; then

    /usr/bin/xulrunner "$APP_INI" "$@"

elif [ -x /usr/bin/iceweasel ]; then

    /usr/bin/iceweasel --no-remote --app "$APP_INI" "$@"

else

    /usr/bin/firefox --app "$APP_INI"  --no-remote "$@"

fi
just-paja commented 9 years ago

See this pull request .. next release will work for you ;)

prikhi commented 9 years ago

Can you try v2.0.10

sudhirkhanger commented 9 years ago

@prikhi there are some more problems with v2.0.10

/usr/bin/pencil: 15: [: 1: unexpected operator
/usr/bin/pencil: 15: [: 1: unexpected operator
/usr/bin/pencil: 15: [: 0: unexpected operator
/usr/bin/pencil: 15: [: 1: unexpected operator                                                                                                                          
/usr/bin/pencil: 26: [: unexpected operator

It's the standalone version that has the problem. Firefox version works just fine.

prikhi commented 9 years ago

@donniezazen Related commit fixes this, caused by #!/bin/sh instead of #!/bin/bash in the pencil executable.

prikhi commented 9 years ago

This is released as v2.0.11, let me know if everything is alright.