Topic: [SOLVED] Source code?

I've been looking around this forum (used Quick Reference and the Google Search facility) for a topic on the Crunchbang source code and whether it's publicly available. In particular, I was interested in the source to cb-fortune because I'm implementing a similar thing for a project. If the source code is indeed available, would some kind soul point me in the right direction?

sm

Last edited by simplemind (2012-01-15 16:32:49)

Re: [SOLVED] Source code?

iirc, cb-fortune is just a script, getting random proverbs from a fixed location. try "which cb-fortune" (without quotations) to find the location of the script and just open it with a text editor to view the source.

Meh. Interested for a Dropbox alternative? Go to https://launchpad.net/tart

Re: [SOLVED] Source code?

^ true. cb-fortune is basically just a script which sends stuff to notify-osd. that last app delivers you the actual pop-up.

Re: [SOLVED] Source code?

Ah, I see, thanks. I guess what I'm really looking for now, is the source code to usr/games/fortune that is executed in the cb-fortune python script. Anyone know where I might find that? (Currently checking some forum posts, I'll update if I find anyhting)

sm

EDIT: files located at  /usr/share/games/fortunes/

Thanks for the help.

Last edited by simplemind (2012-01-15 16:31:43)

Re: [SOLVED] Source code?

^ i deleted all that stuff because i don't use it, but you could try just 'cat fortune' to see whether it is plain text. that will probably also tell you what language it is written in. if you can't read it, you could do 'file /usr/games/fortune' to check what type of file it is. lots of stuff on Linux is written in C so that might be it. not sure how to find that out exactly though.