symbolic link binary with targeted directory

强颜欢笑 提交于 2019-12-11 10:38:49

问题


I have a binary wich loads assets with relatives paths, and I would like to put a link in /usr/bin.

I have tried ln -s ~/game_directory/game /usr/bin/game.

It launches my binary but can't load my assets because he doesn't find the folder ./assets obviously.

There is any solution for that ?

Thanks

来源:https://stackoverflow.com/questions/44433262/symbolic-link-binary-with-targeted-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!