Default Apps Changer - CLI

Miscellaneous tools
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Default Apps Changer - CLI

#1 Post 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! :)
Attachments
defaults-changer-0.2.pet
(1.4 KiB) Downloaded 1102 times
defaults-changer-0.1.pet
(1.08 KiB) Downloaded 800 times
Last edited by sc0ttman on Tue 27 Apr 2010, 11:43, edited 2 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#2 Post by sc0ttman »

In case anyone cares, I've updated this little util.. See main post.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#3 Post by chrome307 »

Thanks for this useful app :)

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#4 Post 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..
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply