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 Sat 23 Aug 2014, 11:40
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
Script to change default file manager
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Tue 14 Sep 2010, 04:52    Post subject:  Script to change default file manager  

Bonjour à tous,

Many new users coming from Windows, are baffled by ROX-Filer, the default file manager in Puppy.
Although it is extremely simple and powerful, some find it hard to understand and want to change the file manager anyway.
For now I only know three file managers that could please those regular users of the explorer of Windows: EmelFM2, Tux Commander and xfe.
To whom it may concern I created a script to simply change the default file manager. Unfortunately, I am not coder and I am sure it is possible to simplify the procedure of this very basic script.

First I created a file /usr/local/bin/defaultfilemgr which defines the default file manager, which is modified by various scripts in the directory /usr/local/changeFM.
Then we must change the file /usr/local/bin/drive_all so that the entry that determines the default file manager "rox" becomes "defaultfilemgr" : file Pinstall.sh in pet package.
And I created a simple gui that allows the choice of window managers.
This script is localized in English and French.
Tested only in 4.3.1

Cordialement Wink

Edit september 20, I deleted the package.

_________________
Toutou Linux - Pets francisés

Last edited by esmourguit on Tue 21 Sep 2010, 03:12; edited 1 time in total
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4335

PostPosted: Fri 17 Sep 2010, 15:12    Post subject:  

rox is not the actual executable for ROX-Filer ...it runs /usr/local/apps/ROX-Filer/AppRun which is another script that runs the executable

for most things you can simply backup /usr/bin/rox and replace it with a symlink to /usr/local/bin/defaultfilemgr (or if necessary a script that parses out variables that may get passed to ROX-Filer - such as pinboard/session startup) This would prevent unwanted behavior in programs that you may not be aware of.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Fri 17 Sep 2010, 23:54    Post subject:  

Bonjour à tous,
Technosaurus, thank you for this information, so I will get back to work.
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
harii4


Joined: 30 Jan 2009
Posts: 444
Location: La Porte City, IA , U.S.A.

PostPosted: Sat 18 Sep 2010, 01:08    Post subject:  

look into:
default filemanager-updated to 0.2 .pet by plinej


its in the unsorted - its old
it might help.
Back to top
View user's profile Send private message Visit poster's website 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Tue 21 Sep 2010, 03:10    Post subject:  

Bonjour à tous,

@technosaurus,
Thank you for your advice.
I followed it and it works well.
There's no need to restart the PC, or even the X server to launch the new file manager.
There is however a slight problem that I do not deal : with a file manager other than ROX-Filer, desktop icons of disks/partitions do not change their status to indicate that the disk or partition is mounted or not.
I removed the package from the first post.

@ harii4
Thank you, I found the package, and I examined it, but there is a problem that has not been resolved : when the package is installed, the desktop is completely empty except one icon for home.
And it does not work with version 4.31.

Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4335

PostPosted: Tue 21 Sep 2010, 04:18    Post subject:  

good point - rox isn't just the file manager -- it also provides the desktop.

you probably just need a "rox" wrapper - something like

Code:
#!/bin/sh
[ $1 == "-p" ] && /usr/local/apps/ROX-Filer/AppRun $@ || defaultfm $@


it may need more options - see the xterm wrapper for an example (ROX-Filer --help may indicate further wrapping is needed, but I think this should get your desktop working -not sure since I am guessing from a windows machine at the moment)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Wed 22 Sep 2010, 04:50    Post subject:  

Bonjour à tous,

@ technosaurus
Thank you very much for this command for a "rox" wrapper. That's fine, but ...

Test with xfe as an alternative file manager with the "rox" wrapper:
When the partition is not mounted, despite the "rox" wrapper, clicking on the desktop icons of disks/partitions, file manager opens first into a /root directory window, then closing that xfe /root directory window, new window appears displaying the selected partition or disk. That is not so bad
But still no change of status on desktop icon.
Unfortunately, I did not find any extra options in rox help.

Another thing, when you plug a USB stick for example, it automatically launches a /root directory window of xfe.
I think there is to do with pmount and pup_event manager

But it is much more difficult than this simple script.
When restarting X, i lost all of desktop icons. I had to change the defaultfilemgr line to a simpler command , removing the "rox" wrapper command.

So i give up, it's too much complicated for me.

Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4335

PostPosted: Wed 22 Sep 2010, 10:58    Post subject:  

examining one of my drive's folders

/root/.pup_event/drive_sda7/AppRun
/root/.pup_event/drive_sda7/Appinfo.xml

they use rox -x -d and -D

pup_event_frontend_d also uses rox -R (it is what sets up all of the drives above)

fyi - goingnuts did all of this as a tray using only jwm (no rox at all) and used jwm for the background as well.... good stuff you should checkout pupngo sometime

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
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.0646s ][ Queries: 12 (0.0097s) ][ GZIP on ]