Giter Club home page Giter Club logo

Comments (8)

xxnet avatar xxnet commented on May 14, 2024

好的,下次把python2指定放入启动脚本。

发布包中的python27是win32版本,不是linux版本。
linux下的库已经包含进去了,在python/$version/lib/linux 下

from xx-net.

xxnet avatar xxnet commented on May 14, 2024

加上了,请测试

from xx-net.

litel avatar litel commented on May 14, 2024

好了,linux 基本可以开箱即用。
另外,我现在用的开机自启动是这样做的

➜ ~ cat .config/autostart/xx-net.desktop
[Desktop Entry]
Name=xx-net
Exec=gnome-terminal -x /home/kokutou/Desktop/xx-net-1.0.9.sh
Type=Application
➜ ~ cat ~/Desktop/xx-net-1.0.9.sh
#!/bin/bash
cd ~/app/XX-Net-1.0.9
gnome-terminal -x ./start.sh
➜ ~

如果没有一个额外的 cd 切换目录的话,gnome-terminal 就会提示找不到 launcher/start.py 文件。

start.sh 能处理下目录的问题么。

from xx-net.

litel avatar litel commented on May 14, 2024

osx 下面添加开机启动项是弄了个 .command 文件,就能塞到设置 用户和组 登录项 里面了

$ cat ./XX-Net-1.0.9/start.command
#!/bin/bash
cd ~/app/XX-Net-1.0.9

if hash python2 2>/dev/null; then
python2 launcher/start.py
else
python launcher/start.py
fi

一样要个 cd 切换到相应目录才行。

建议处理下目录并放一个 .command 文件。

from xx-net.

xxnet avatar xxnet commented on May 14, 2024

赞一个,start.sh 切换到脚本所在目录,应该有这个技巧,上网搜一下加上就好

from xx-net.

litel avatar litel commented on May 14, 2024

➜ ~ cat .config/autostart/xx-net.desktop
[Desktop Entry]
Name=xx-net
Exec=nohup /home/kokutou/app/XX-Net-1.0.9/start.sh
Type=Application

➜ ~ cat app/XX-Net-1.0.9/start.sh
#!/bin/bash
cd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

if hash python2 2>/dev/null; then
python2 launcher/start.py
else
python launcher/start.py
fi

搜到了,就这一句 cd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 就行了~

from xx-net.

xxnet avatar xxnet commented on May 14, 2024

Cool !
下个版本加上.

from xx-net.

xxnet avatar xxnet commented on May 14, 2024

1.1.0 已经加上,哦耶

from xx-net.

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.