pharo icon indicating copy to clipboard operation
pharo copied to clipboard

[Super important for newbies ] be able to create a preferences file from Pharo

Open Ducasse opened this issue 1 year ago • 0 comments

In the past we could create a preference file directly from Pharo. This was SUPER SUPER HANDY because it is a HELL to find on windows how to edit a preference file.

Please please help the newbies. It would be great to propose a default preference such as

StartupPreferencesLoader default executeAtomicItems: {
	StartupAction 
		name: 'Logo' 
		code: [ PolymorphSystemSettings showDesktopLogo: false] .
	StartupAction 
		name: 'Git Settings' 
		code: [ 
			Iceberg enableMetacelloIntegration: true.
			IceCredentialsProvider sshCredentials
					username: 'git';
					publicKey: '/Users/XXX/.ssh/id_rsa.pub';
					privateKey: '/Users/XX/.ssh/id_rsa'.
			IceCredentialStore current
					storeCredential: (IcePlaintextCredentials new
					username: 'GHUSER';
					password: 'PassWord';
					host: 'github.com';
					yourself).		


			IceCredentialStore current
				storeCredential: (IceTokenCredentials new
					username: 'GHUSER';
					token: 'YOUR TOKEN';
					yourself) 
				forHostname: 'github.com'.
			]. 
}.

Ducasse avatar Sep 27 '24 08:09 Ducasse