Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 01 Oct 2014, 22:24
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Default Apps Changer - CLI
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Sun 18 Apr 2010, 10:51    Post_subject:  Default Apps Changer - CLI
Sub_title: command line tool for changing defaults apps
 

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:
defaults-changer [browser|etc|wordprocessor] command


1. Get help:
Code:
defaults-changer -h


2. Some specific examples of how to change default apps:

Code:
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! Smile
defaults-changer-0.2.pet
Description 
pet

 Download 
Filename  defaults-changer-0.2.pet 
Filesize  1.4 KB 
Downloaded  696 Time(s) 
defaults-changer-0.1.pet
Description 
pet

 Download 
Filename  defaults-changer-0.1.pet 
Filesize  1.08 KB 
Downloaded  438 Time(s) 

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search

Edited_times_total
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Tue 27 Apr 2010, 07:27    Post_subject:  

In case anyone cares, I've updated this little util.. See main post.
_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Thu 29 Apr 2010, 06:25    Post_subject:  

Thanks for this useful app Smile
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Thu 29 Apr 2010, 09:01    Post_subject:  

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..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0476s ][ Queries: 12 (0.0063s) ][ GZIP on ]