What adds mint-fortune to bash.bashrc?

Questions about applications and software
Forum rules
Before you post please read how to get help

What adds mint-fortune to bash.bashrc?

Postby maxmir on Sat Apr 09, 2011 5:32 pm

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.
User avatar
maxmir
Level 1
Level 1
 
Posts: 19
Joined: Thu Mar 24, 2011 1:41 pm

Linux Mint is funded by ads and donations.
 

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

Postby viking777 on Sun Apr 10, 2011 1:31 pm

mintsystem does this.

Look for it in synaptic then look at 'properties'.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

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

Postby maxmir on Mon Apr 11, 2011 12:16 am

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.
User avatar
maxmir
Level 1
Level 1
 
Posts: 19
Joined: Thu Mar 24, 2011 1:41 pm

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

Postby maxmir on Tue May 24, 2011 2:25 pm

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?
User avatar
maxmir
Level 1
Level 1
 
Posts: 19
Joined: Thu Mar 24, 2011 1:41 pm

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

Postby wyrdoak on Wed May 25, 2011 1:07 pm

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
-Dell Mini Netbook-Atom CPU-N270-1.60ghz; 16gbs mini ePCI PATA SSD
RAM- 1gbs-(Maya-Xfce) LInux 3.2.0.57-generic(i686)
SolydX (32bit)
User avatar
wyrdoak
Level 6
Level 6
 
Posts: 1313
Joined: Thu May 19, 2011 1:32 pm
Location: USA


Return to Software & Applications

Who is online

Users browsing this forum: Bing [Bot] and 21 guests