Page 1 of 1

What adds mint-fortune to bash.bashrc?

Posted: Sat Apr 09, 2011 5:32 pm
by maxmir
Not the normal I love/hate the fortune cookie that comes up when starting an interactive bash shell. I'm just curious.

What magically adds the call of mint-fortune to the end of the /etc/bash.bashrc file, which it does not have when it arrives from Ubuntu Land?

Environment -- Linux Mint 10, 64-bit, Gnome.

PS OK, since you ask, I comment out that line. If I'm opening a terminal window I'm probably doing something useful and not playing so I don't want to be distracted. I imagine it would make any suit thinking of switching their business from Windows to Linux think twice. Anyway, unless I misread the code, it seems that not only will it be configurable soon, but also the default will be off.

Re: What adds mint-fortune to bash.bashrc?

Posted: Sun Apr 10, 2011 1:31 pm
by viking777
mintsystem does this.

Look for it in synaptic then look at 'properties'.

Re: What adds mint-fortune to bash.bashrc?

Posted: Mon Apr 11, 2011 12:16 am
by maxmir
viking777 wrote:mintsystem does this.

Look for it in synaptic then look at 'properties'.
Thanks for the reply, but I still couldn't see it. In "mintsystem_7.7.3_all.deb" I can see mint-fortune and rtfm being added, and a synaptic glade file being replaced on package installation. I can also see the init.d addition that'll overwrite a whole bunch of files on each system startup. What I can't see is what appends the last line to /etc/bash.bashrc (i.e. the call to mint-fortune) once only.

Re: What adds mint-fortune to bash.bashrc?

Posted: Tue May 24, 2011 2:25 pm
by maxmir
So I guess nobody knows what adds this? Perhaps it'll at least be guarded by a check for the executable in Linux Mint 11?

Re: What adds mint-fortune to bash.bashrc?

Posted: Wed May 25, 2011 1:07 pm
by wyrdoak
Howto: Remove Fortune messages in the Terminal
by clem on Wed Jan 31, 2007 10:47 am

- open a terminal
- type "gksu gedit /etc/bash.bashrc"
- in the end of the file, remove the line /usr/games/fortune
- save the file.

Clem