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:

#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

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

#21 Post by plinej »

There's finally a new release of pcmanfm out today.

http://pcmanfm.sourceforge.net/

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

#22 Post by MU »

Fantastic.
The big pictures or /proc no longer crash it.
Now it is "perfect" :)

I updated it with my patches and uploaded the new dotpup.
It now is compiled with support for hal-storage.
That lib is included.
This is needed to mount drives.

On my Puppy it will not work though, as I have no "hal-daemon" running.
But if you find out how to add that, pcmanfm should use it.

Mark

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

#23 Post by MU »

oh no, it is broken.
The mime-handling was completely rewritten, and does not work in Puppy :(

Mark

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

#24 Post by MU »

ok, wrote new converterscripts.
Now new, "invisible" .desktop files are created from the rox-mimetypes.
These .desktop-files are placed in
/usr/share/applications/puppy, and contain the mime-type definitions.

This new pcmanfm depends on desktop-file-utils.
My scripts offer to download/install a dotpup I once made.

Mark

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

#25 Post by MU »

Updated dotpup.
my script rox2desktop had some wrong entries, fixed now.

However I found another bug:
if you right-click a file, open with, then you can choose "all applications".
Some crash pcmanfm, e.g. if you try to open a .jpg with "defaultdraw".

This should be checked...
Mark

Joshas
Posts: 26
Joined: Mon 21 Jan 2008, 13:59

#26 Post by Joshas »

Nice to see that development continues. I really like this file manager - is simple, fast and has only a few dependencies.
What about mounting drives in it? I wonder if it would be possible to substitute current Puppy Drive Mounter with it?

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

#27 Post by MU »

As far as I understood, the mounting-features require the HAL-Daemon.
We have no package for that.
I compiled pcmanfm with HAL-Support, so it could use the daemon, if we had it.

One of the 2.1x Retro-Puppys has an own solution to mount drives.
Some Icons lying on the desktops.
It would be great to have this as a dotpup.

Mark

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

#28 Post by MU »

Updated dotpup.
Minor change in "/usr/local/bin/rox":

Pcmanfm did not open, if invoked as
rox -d thefolder

Fix:

Code: Select all

if [ "$usepcmanfm" == "1" ];then
a=$1
if [ "$1" == "-d" ];then
a=""
fi
pcmanfm $a $2 $3 $4 $5 $6 $7 $8 $9 &
exit 0
fi
Mark

User avatar
Jon_J
Posts: 76
Joined: Thu 06 Mar 2008, 20:10
Location: Illinois

#29 Post by Jon_J »

I launched pcmanfm in a console and it is missing this lib:
libstartup-notification-1.so.0
I downloaded the 5 libs below from http://www.puppylinux.ca/ttuuxxx/Libs/
libstartup-notification-1.a
libstartup-notification-1.la
libstartup-notification-1.so
libstartup-notification-1.so.0
libstartup-notification-1.so.0.0.0

Should these be linked together in a package?
I tried copying libstartup-notification-1.so.0 to /usr/lib
Now pcmanfm spits out this error. "libstartup-notification-1.so.0" file too short"

The above website is the only place I could find this lib.
This forum returns nothing in search, although this lib is listed in this thread:
http://murga-linux.com/puppy/viewtopic. ... 79f9f28433

I'm just asking, why not have these libs symlinked together and in a package with the symlinks already created?
I don't know which of the above five libs needs to be symlinked to which one of the other five.

Off topic: When searching for a lib for my Zaurus, (linux embedded palmtop), all the libs are in packages and they are already symlinked together.
Inside the packages some only have 3 files, but others have 5 files, and several of these files(libs) are just a symlink of one of the other files(libs) in that particular lib package.

EDIT:
I just found the above lib that pcmanfm is looking for.
They are in /usr/local/Pcmanfm/lib

Do I need to symlink all these libs to /usr/lib ?

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

#30 Post by MU »

the libs should be included by /usr/bin/pcmanfm , which is a script.
It includes this line:
export LD_LIBRARY_PATH="/usr/local/Pcmanfm/lib:$LD_LIBRARY_PATH"
Can you confirm that?

If yes, then maybe libstartup-notification cannot be loaded because of another missing lib.

Please type this in a console:

cd /usr/local/Pcmanfm/lib
ldd libstartup-notification-1.so

This should report:

Code: Select all

# ldd libstartup-notification-1.so
        linux-gate.so.1 =>  (0xffffe000)
        libSM.so.6 => /usr/X11R7/lib/libSM.so.6 (0xb7fe0000)
        libICE.so.6 => /usr/X11R7/lib/libICE.so.6 (0xb7fc8000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7ee0000)
        libc.so.6 => /lib/libc.so.6 (0xb7d9e000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7d9c000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7d84000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7d80000)
        /lib/ld-linux.so.2 (0x80000000)
        libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0xb7d7d000)
        libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0xb7d78000)
If you get a "not found" here, please tell me what is not found.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Jon_J
Posts: 76
Joined: Thu 06 Mar 2008, 20:10
Location: Illinois

#31 Post by Jon_J »

MU,
I'll have to try your suggestions later, sorry...
I have since uninstalled PCManfm, and doing this caused my desktop to disappear upon restart of 'X'
I decided to re-install puppy-2.17.1-nolzma-seamonkey-fulldrivers.iso onto itself, but then Grub got corrupted.
I know I should have used a backup, but I just started using Puppy Linux, for the first time, 3 days ago, and haven't made any backups.
Using the Live-CD, I reformatted my linux partition and started over from a fresh install of puppy-2.17.1-nolzma-seamonkey-fulldrivers.iso

I also need to mention that I had previously tried installing several other dotpups and had probs with them.
I tried 2 versions of emelfm2 and had to uninstall them. I tried 3 different versions of mrxvt before I found a version with transparency that worked.
Installing those, and several other dotpups and pets required some additional libraries and dependencies that may have corrupted my Puppy setup. This is why I decided to start over with a fresh install of Puppy.
I'll try PCManfm later when I get more time... It will be my first dotpup along with "Gnome-icon-theme-2.14.2.pup"
MU wrote:the libs should be included by /usr/bin/pcmanfm , which is a script.
It includes this line:
export LD_LIBRARY_PATH="/usr/local/Pcmanfm/lib:$LD_LIBRARY_PATH"
Can you confirm that?

If yes, then maybe libstartup-notification cannot be loaded because of another missing lib.

Please type this in a console:

cd /usr/local/Pcmanfm/lib
ldd libstartup-notification-1.so

This should report:

Code: Select all

# ldd libstartup-notification-1.so
        linux-gate.so.1 =>  (0xffffe000)
        libSM.so.6 => /usr/X11R7/lib/libSM.so.6 (0xb7fe0000)
        libICE.so.6 => /usr/X11R7/lib/libICE.so.6 (0xb7fc8000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7ee0000)
        libc.so.6 => /lib/libc.so.6 (0xb7d9e000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7d9c000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7d84000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7d80000)
        /lib/ld-linux.so.2 (0x80000000)
        libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0xb7d7d000)
        libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0xb7d78000)
If you get a "not found" here, please tell me what is not found.

Mark

User avatar
Jon_J
Posts: 76
Joined: Thu 06 Mar 2008, 20:10
Location: Illinois

#32 Post by Jon_J »

I decided to change my Puppy to "fat-free-3.01-xorg", (Ignore my sig, I need to update it).
I'm getting the same notifications on fat-free-3.01 as I did when installing Pcmanfm on Puppy 2.17
I first installed "Gnome-icon-theme-2.14.2.pup"
Then while Pcmanfm is installing, the first message I get is:
created backup: /usr/local/bin/rox.12710
Then I get another message:
These files already exist, overwrite them?
=> /usr/local/bin/rox


I decided to abort this install at this point because (as mentioned in my post above) I lost my desktop after I un-installed Pcmanfm on my previous Puppy 2.17
[color=green][size=75]Dell Mini-10 tri boot | Win XP, Mint 7 XFCE, Puppy 4.3-small
Intel Core2 Duo 2.80GHz 2GB Ram Win XP sp3
Pentium 3/600Mhz 256MB Ram tri boot Puppy-Full-3.01|1.0.4|Win98
Sharp Zaurus Linux devices SL-C3100 & SL-C3200[/size][/color]

User avatar
Jon_J
Posts: 76
Joined: Thu 06 Mar 2008, 20:10
Location: Illinois

#33 Post by Jon_J »

opps - double post
Last edited by Jon_J on Tue 18 Mar 2008, 02:38, edited 1 time in total.
[color=green][size=75]Dell Mini-10 tri boot | Win XP, Mint 7 XFCE, Puppy 4.3-small
Intel Core2 Duo 2.80GHz 2GB Ram Win XP sp3
Pentium 3/600Mhz 256MB Ram tri boot Puppy-Full-3.01|1.0.4|Win98
Sharp Zaurus Linux devices SL-C3100 & SL-C3200[/size][/color]

User avatar
Jon_J
Posts: 76
Joined: Thu 06 Mar 2008, 20:10
Location: Illinois

#34 Post by Jon_J »

MU wrote:the libs should be included by /usr/bin/pcmanfm , which is a script.
It includes this line:
export LD_LIBRARY_PATH="/usr/local/Pcmanfm/lib:$LD_LIBRARY_PATH"
Can you confirm that?

If yes, then maybe libstartup-notification cannot be loaded because of another missing lib.

Please type this in a console:

cd /usr/local/Pcmanfm/lib
ldd libstartup-notification-1.so

This should report:

Code: Select all

# ldd libstartup-notification-1.so
        linux-gate.so.1 =>  (0xffffe000)
        libSM.so.6 => /usr/X11R7/lib/libSM.so.6 (0xb7fe0000)
        libICE.so.6 => /usr/X11R7/lib/libICE.so.6 (0xb7fc8000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7ee0000)
        libc.so.6 => /lib/libc.so.6 (0xb7d9e000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7d9c000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7d84000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7d80000)
        /lib/ld-linux.so.2 (0x80000000)
        libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0xb7d7d000)
        libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0xb7d78000)
If you get a "not found" here, please tell me what is not found.

Mark
Here is the output of the above command: (notice there are differences)
cd /usr/local/Pcmanfm/lib
ldd libstartup-notification-1.so

Code: Select all

# ldd libstartup-notification-1.so
        linux-gate.so.1 =>  (0xffffe000)
        libSM.so.6 => /usr/X11R7/lib/libSM.so.6 (0xb7f3e000)
        libICE.so.6 => /usr/X11R7/lib/libICE.so.6 (0xb7f26000)
        libX11.so.6 => /usr/X11R7/lib/libX11.so.6 (0xb7e3e000)
        libc.so.6 => /lib/libc.so.6 (0xb7cfc000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7cfa000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7ce2000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7cde000)
        /lib/ld-linux.so.2 (0x80000000)
        libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0xb7cdb000)
        libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0xb7cd6000)
Sorry to bring this back up. I am trying this again.
I've acquired more knowledge how Puppy Linux works, but apparently not enough. :? :)
I started with a fresh install of Puppy 3.01
I tried launching pcmanfm.bin in a console like directed in the first post on page one.
I got "cannot open shared object file" (libfam.so.0 is missing)
I found this lib inside "Gamin-0.1.7.pup" and installed it. Rebooted.
Now I get "cannot open shared object file" (libhal-storage.so.1 is missing)
I'm not sure how to chase down missing deps in Puppy with newly made programs.
I'm used to launching a binary in a console and googling/searching a forum for deps/files.

Usually if installing from a feed, the deps are listed in the "Packages" file and are downloaded, (if the server is up).
I had a problem with pcmanfm after first launching it.
It needed a GTK2 dep and couldn't connect to the feed.
Now it doesn't try this anymore when I launch it.

EDIT:
I tried some stuff in the pcmanfm and hit "update desktop database" It spit out an error, but this time it connected to the server and downloaded:
desktop-file-utils-0.11.pup

Jon
Last edited by Jon_J on Tue 18 Mar 2008, 03:07, edited 1 time in total.
[color=green][size=75]Dell Mini-10 tri boot | Win XP, Mint 7 XFCE, Puppy 4.3-small
Intel Core2 Duo 2.80GHz 2GB Ram Win XP sp3
Pentium 3/600Mhz 256MB Ram tri boot Puppy-Full-3.01|1.0.4|Win98
Sharp Zaurus Linux devices SL-C3100 & SL-C3200[/size][/color]

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

#35 Post by MU »

I got "cannot open shared object file" (libfam.so.0 is missing)
Now I get "cannot open shared object file" (libhal-storage.so.1 is missing)
These are in
/usr/local/Pcmanfm/lib

They are included by the startscript pcmanfm.
Also your result for libstartupnotification.so looks ok.
So I'm baffled what still could be wrong, I'm out of idea at moment :(

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

Post Reply