Page 1 of 1

Default Apps Changer - CLI

Posted: Sun 18 Apr 2010, 14:51
by sc0ttman
DEFAULT APP CHANGER

Easily change your default browser, editor, word processor and so on.

This was made as a part of another project, so may or may not be of any use.
I use it inside other scripts, as an easy way to change the default apps, if required.

Changes the executed commands in the /usr/local/bin/default*** files, via simple commands in the terminal console..

Changelog:

version 0.2

- changes are only made if both the default*** exist and the new command given is executable
- the full path is not required for commands - `which` is now used to find the full path
- all messages output in terminal

Example usage, (type in console):

Code: Select all

defaults-changer [browser|etc|wordprocessor] command
1. Get help:

Code: Select all

defaults-changer -h
2. Some specific examples of how to change default apps:

Code: Select all

defaults-changer browser opera
defaults-changer draw /path/to/gimp
NOTE: full path and double quotes ("") are optional for the final command

Supports all the default*** files that you may have installed! :)

Posted: Tue 27 Apr 2010, 11:27
by sc0ttman
In case anyone cares, I've updated this little util.. See main post.

Posted: Thu 29 Apr 2010, 10:25
by chrome307
Thanks for this useful app :)

Posted: Thu 29 Apr 2010, 13:01
by sc0ttman
My pleasure... Glad you like it..

It was a pain in the next to do it manually all the time, and I needed a quick way of doing it that I could also use in scripts..