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 Mon 22 Dec 2014, 23:44
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 [4 Posts]  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2387
Location: UK

PostPosted: Sun 18 Apr 2010, 10:51    Post subject:  Default Apps Changer - CLI
Subject description: 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  709 Time(s) 
defaults-changer-0.1.pet
Description 
pet

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

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

Last edited by sc0ttman on Tue 27 Apr 2010, 07:43; edited 2 times in total
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2387
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: 2387
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 from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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