aniket-deole / notes

An Evernote client for Linux
http://aniket-deole.github.io/notes
GNU Lesser General Public License v2.1
61 stars 6 forks source link

How to run/make .desktop file after install? #37

Open DroWnThePoor opened 7 years ago

DroWnThePoor commented 7 years ago

Hello, I am able to run the app with make test, however... I'd like to make a .desktop icon for this, but I'm not sure what even executes it? In "src" there's a plain text file called "notify.o" that opens with "Run-Software" which seems to be the most likely candidate, however it doesn't run upon double click. Any help appreciated.

aniket-deole commented 7 years ago

I think you can use

LD_LIBRARY_PATH=libevernote/ ./notes

in a shell script. Change the directories to make them non-relative. (These are relative to src/ right now)

DroWnThePoor commented 7 years ago

I don't follow you fully, I know you want me to make an absolute path to ./notes, but what is the LD_LIBRARY_PATH command? Is that what I should put in for the exec line in the .desktop file?

On Thu, Dec 15, 2016 at 8:04 PM, Aniket Deole notifications@github.com wrote:

I think you can use

LD_LIBRARY_PATH=libevernote/ ./notes

in a shell script. Change the directories to make them non-relative. (These are relative to src/ right now)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/aniket-deole/notes/issues/37#issuecomment-267490400, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APlQTD3_Zjb0wFc0cayiJEduLsfNKlvnks5rIeOlgaJpZM4LOu2w.

aniket-deole commented 7 years ago

LD_LIBRARY_PATH is just setting the environment variable for the library(libevernote) location as I do not want to move it to the default library path just yet. Not tested, but you use something like below in your .desktop file.

Exec=LD_LIBRARY_PATH=/home/user/../../../libevernote/ /home/user/../../../notes