PCMan Filemanager updated Feb, 03

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

PCMan Filemanager updated Feb, 03

#1 Post by MU »

Screenshot:

Image


full size view (110 kb):
http://noforum.de/pics/Pcmanfm.jpg


This filemanager is based on the one described in another message:
http://murga-linux.com/puppy/viewtopic.php?t=17533

It uses Tabs and bookmarks, reminds a bit about Firefox.

It uses Gtk2, and you can drag&drop files on Puppys Rox-Desktop.
You also can drag&drop files with XFileExplorer 1.0.4 (but not older ones).
You can create zips with a right-click.
It is fast, and shows Thumbnails (previews) of pictures.

You even can use a (very simple) Desktop with icons.
But this is no real replacement for Rox, as it has limited functionality.
But if you have a slow PC, it might be an alternative.
I describe that in the other message.

It is written in clean C, and is an open invitation to be modified :P

I made these changes:
All required libraries are included.
In an own subfolder, to avoid conflict with other dotpups.
You do not need the High-color-theme.
The necessary filestructure will be created, if not there yet.

The warning "you are running as root" I disabled in the sourcecode and recompiled it.

You now can pass size and position to the first opened window.
The second then will be opened beside it.

If you run it from the startmenu, 2 windows are opened side by side.

If no configuration exists, one will be created.
It will use the gnome-icon theme, you do not need to edit gtkrc files.

Localization files are included.

Download (330 kb):
http://dotpups.de/puppy3/dotpups/File_M ... cmanfm.pup
or:
http://puppyfiles.ca/dotpupsde/puppy3/d ... cmanfm.pup

REQUIRES:
http://dotpups.de/dotpups/Libraries/Gtk ... 2.14.2.pup (2.7 MB)
or:
http://puppyfiles.ca/dotpupsde/dotpups/ ... 2.14.2.pup


OPTIONS:
To modify window-size and startposition of the 2 windows, edit:
/usr/local/Pcmanfm/2pcmanfm

To force it to use a different icontheme, edit /usr/local/Pcmanfm/lib/pcmanfm.gtkrc
or /usr/bin/pcmanfm (this now is a startscript, that parses the new gtkrc and calls pcmanfm.bin)

ISSUES:
1.) If it will not run, type in a console:
pcmanfm.bin
Then copy&paste the errors here.
I might have forgotten a lib, and would add it then.

2.)
I added the patched main.c in the lib/ folder.
Patches begin with //MU

Mark
Last edited by MU on Sat 14 Nov 2009, 18:14, edited 5 times in total.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#2 Post by plinej »

I'm pretty sure the libfamin/gamin is for an improved form of file refreshing.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

Yes, think you're right.
I will look it up tomorrow after some sleep.
I remember I got that working already in the Gnome-dotpup, or in Muppy 007 more than a year ago.
It is a small server that must be launched by xsession or a startupscript like icewms startup.

I really like this one, it could become a replacement for XFE.
Maybe with some more patches I can customize it, e.g. add some buttons to open a terminal or so.

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

I added a xmessage based script ("addmime").
It allows you to import the mime-types (file associations) from Rox-Filer.
Very simple.
It offers you to backup the old mime-file first.

*** solved ***
Btw, when I delete a file and reload, it is still visible.
I must go to another folder first, then again to the folder where I deleted, to see the change.
We really must fix that.

Mark
Last edited by MU on Wed 23 Jan 2008, 17:56, edited 1 time in total.

JB4x4
Posts: 256
Joined: Sun 30 Jul 2006, 22:44
Contact:

#5 Post by JB4x4 »

Mark,

Just a suggestion. You should also hack the code to remove the "Open Current Folder as Root" under "Tool" as this returns an error.

ref. Line 357 main-window.c

Code: Select all

        PTK_IMG_MENU_ITEM( N_( "Open Current Folder as _Root" ),
                           GTK_STOCK_DIALOG_AUTHENTICATION,
                           on_open_current_folder_as_root, 0, 0 ),
I believe I commented that out to remove the option.

JB

magerlab
Posts: 739
Joined: Sun 08 Jul 2007, 20:08

#6 Post by magerlab »

on the previous topic there where links to MU's post of thunar where you can see links to some libs required( libgamin e.g.)

Also i have a request for a tango theme ( maybe cut with just smaller icons)

And is there a pup/pet for gpicview( image viewer form the same author)?
Thank again

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#7 Post by muggins »

I did try compiling gpicview, and while it always compiled without problems, it would always seg-fault on me. Maybe with a newer gtk version it would be OK.

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#8 Post by Dingo »

a simple newbie question: Installing PCman, I lose ROX features or not? Can I restore after uninstalling pcman?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#9 Post by MU »

Dingo, no problem, they do not interfere.
You don't need to restore anything.
PCMan will not replace Rox.
You can use it in addition, like tuxcommander or XFE.

JB4x4 , yes, good idea. In the next release I'll add that.
Mark

User avatar
cb88
Posts: 1165
Joined: Mon 29 Jan 2007, 03:12
Location: USA
Contact:

#10 Post by cb88 »

what MU says above doesn't mean that PCmanfm CAN'T relace ROX just that it takes a little doing....and normally it doesn't interfere at all

I think ROX just provides our background and filemanager right?

well PMmanfm also can display the background and icons that are placed in ./Desktop or is it ./desktop
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#11 Post by MU »

~/Desktop

You're right.
It does not replace Rox (Desktop-Icons/Background and Filemanager).
You had to modify .xinitrc to do that.
My dotpup does not do it, because I see it as an addon, not as a replacement due to the mentioned bug and limitations for the usage as desktop.

But on a slow machine it may be worth to use it instead of rox.
We have users that use no rox at all, for them it can be worth a try.
We just must find out, why the view is not refreshed when a file is deleted.
I think that is important.
Mark

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#12 Post by plinej »

I've been messing with some of the options when compiling emelfm2 and noticed the same exact problem when it gets compiled with "libfam" support. Maybe pcmanfm depends on this too?

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#13 Post by plinej »

Alright, I see pcmanfm depends on libfam as well. I just did a ldd on it but haven't installed it. I built emelfm2 again enabling libfam and fixed the problem by installing the latest libfam from:

ftp://oss.sgi.com/projects/fam/download/

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#14 Post by plinej »

The really strange thing though is I need to build it against the libfam currently in puppy and then use the replacement libfam. If I build it against the replacement libfam I get the same exact problem.

-------------------

Disregard the above comment. I can build against the new libfam and it works fine. I think I had an open instance of emelfm2 after installing my newly compiled version. I'm fairly certain the libfam in puppy is outdated and not working correctly.

Here's the version I compiled in Puppy 4 (hopefully it'll work in Puppy 3).
Attachments
fam-2.7.0.pet
(60.6 KiB) Downloaded 1569 times
fam_dev-2.7.0.pet
(3.88 KiB) Downloaded 1362 times

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#15 Post by MU »

I compiled it with libfam from Debian stable I think.

I updated the dotpup.

Solved: Refresh view when files are added or deleted.
It just required that gamin_server runs. That is included now (also in my own /lib/ folder to avoid conflicts).

Added: An icon to open a consolewindow.
Removed: the "location" label.

Removed: "Tool - Open folder as root"
Added: "Tool - import Mime-types". This runs my import-script.
Fixed: import-script created backup when you clicked on "cancel".

Now it is a veeeeeeeeery fine filemanager for me 8) :P

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#16 Post by MU »

updated again.
Small patch in source, now it remembers the window-size again.
That was a bit broken by my sidebyside code.

TIP: OUTDATED, SEE UPDATE FURTHER DOWN. FORGET THIS TIP!
How to use Pcmanfm as a replacement for Rox-Filer windows:

Edit /root/.xinitrc

Replace:

Code: Select all

rox -p /root/Choices/ROX-Filer/PuppyPin 
with:

Code: Select all

rox-real -p /root/Choices/ROX-Filer/PuppyPin 
Now rename
/usr/local/bin/rox
to
/usr/local/bin/rox-real

Now create a symlink, type in a console:
ln -s /usr/bin/pcmanfm /usr/local/bin/rox



Like this Rox is still used to display the Backgroundpicture and desktop-icons.
But if you click on your "Home" (Files) Icon, then Pcmanfm will be opened instead of a Rox-window.
Mark
Last edited by MU on Thu 31 Jan 2008, 20:51, edited 1 time in total.

kdulcimer
Posts: 37
Joined: Wed 07 Jun 2006, 14:11

#17 Post by kdulcimer »

Hello,

Do you have the .patch files stored elsewhere? I am interested in applying these patches to an RPM. Thanks.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#18 Post by MU »

you can unzip the dotpup.
Rename it to .zip, then use your favourite packager.
The patched files are in /usr/local/Pcmanfm/lib/patched-source/
Mark

kdulcimer
Posts: 37
Joined: Wed 07 Jun 2006, 14:11

#19 Post by kdulcimer »

Thank you very much, Sir!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#20 Post by MU »

I updated the dotpup.

You no longer need to rename files, to use pcmanfm instead of Rox.
I added a utility, that handles if you want to activate Rox-Filer-windows or Pcmanfm-windows.

It includes a modified rox startscript, that will check in a configfile, if it shall use rox or pcmanfm to display filerwindows.
The configfile is set by a utility in the menu, "set-Pcmanfm".
It will always use Rox-filer for special commands like --RPC (to set the backgroundpicture) or running PuppyPin (the desktop-Icons of Puppy).
A backup of your old /usr/local/bin/rox is created on installation.

Mark

Post Reply