japandotorg / LemonCord

A fast & light weight Discord Client made with love using the Rust programming language.
MIT License
44 stars 3 forks source link

A compiled program runs only when launched from a root directory of a repository #19

Open Freemason-12 opened 1 year ago

Freemason-12 commented 1 year ago

Thanks for taking the time to fill out a bug report. If you want real-time support consider joining our Discord at https://melonbot.io/support instead.

Please note that this form is for bugs only!

Summary When I put an executable somewhere else in my $PATH (including /usr/local/bin/ as shown in the readme) it gives an error:

thread 'main' panicked at 'Failed to open icon path.: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })', src/main.rs:283:14

when I looked at the code (although I know basically no rust at all, just some other languages) it appears to be that the code literally does that, looks from the root of the project

Steps To Reproduce

Expected Behavior

Platform And Versions

Additional Context The executable runs as intended when you cd into the cloned repo and run ./target/release/lemon-cord

japandotorg commented 1 year ago

Hello there @Freemason-12 , a temporary fix for this issue is pinned in the lounge channel of my discord server.

ryzendew commented 1 year ago

Hello there @Freemason-12 , a temporary fix for this issue is pinned in the lounge channel of my discord server.

not everyone wants another discord to join best to add it here also

VioletJewel commented 2 months ago

yes, please. Add it here! :-)