PCManFM Mod - User-Definable Commands And More

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: PCManFM Mod - User-Definable Commands And More

Post by IgnorantGuru »

@PCMan
Thanks for letting me know. That sounds great. I think I will wait and let you do it. :) A joke, but I think you are more knowledgeable than I in doing it properly. In the meantime I have my mod of 0.5.2 to use. I'll take a look at the specs - I'm sure they will provide more functionality than I was planning. My thinking is that if the FM at least allows one to call a script with all selected files passed to it, the script can do most of the work.
Check out my blog for useful scripts, mods and tips... http://igurublog.wordpress.com
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: PCManFM Mod - User-Definable Commands And More

Post by IgnorantGuru »

phillipe wrote:I only made this question, because if we put a .desktop file on desktop, the application name and the icon aren't showed.
Anyway, I really liked the changes that you made on pcmanfm.
Version 0.9.6 of pcmanfm-mod is available, and this should correct the desktop issue. If the .desktop file is located in the user's Desktop folder, the mod will now display the app name and icon. Otherwise it will just display the filename like before.

Also, this update includes a workaround for the GTK2.20 bug which has crippled pcmanfm and thunar.

http://igurublog.wordpress.com/downloads/mod-pcmanfm/
http://aur.archlinux.org/packages.php?ID=34819
Check out my blog for useful scripts, mods and tips... http://igurublog.wordpress.com
phillipe
Posts: 41
Joined: Mon Apr 27, 2009 4:12 pm

Re: PCManFM Mod - User-Definable Commands And More

Post by phillipe »

IgnorantGuru wrote:
phillipe wrote:I only made this question, because if we put a .desktop file on desktop, the application name and the icon aren't showed.
Anyway, I really liked the changes that you made on pcmanfm.
Version 0.9.6 of pcmanfm-mod is available, and this should correct the desktop issue. If the .desktop file is located in the user's Desktop folder, the mod will now display the app name and icon. Otherwise it will just display the filename like before.

Also, this update includes a workaround for the GTK2.20 bug which has crippled pcmanfm and thunar.

http://igurublog.wordpress.com/downloads/mod-pcmanfm/
http://aur.archlinux.org/packages.php?ID=34819
Very good my friend!
I really liked it! ;)
==> Phillipe Smith ( SmithuX ) <==
Email: phillipe@archlinux.com.br
WebSite: http://www.smithux.com
Tilsan
Posts: 3
Joined: Sat Jun 12, 2010 9:39 am

Re: PCManFM Mod - User-Definable Commands And More

Post by Tilsan »

Thanks for your mod, it's definitely an improvement over the standard version and miles ahead of the new version.
Just a little question, how can I enable icons for the new commands in the right click menu, they all show the same execute icon and not what is specified in the .desktop file. I understand your reason for removing the naming confusion on desktop files, but the icons are a useful way to quickly distinguish one action from another.
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: PCManFM Mod - User-Definable Commands And More

Post by IgnorantGuru »

Tilsan wrote:Thanks for your mod, it's definitely an improvement over the standard version and miles ahead of the new version.
Just a little question, how can I enable icons for the new commands in the right click menu, they all show the same execute icon and not what is specified in the .desktop file. I understand your reason for removing the naming confusion on desktop files, but the icons are a useful way to quickly distinguish one action from another.
I did try to do this earlier but I encountered a problem I wasn't able to resolve at the time - I don't recall what the issue was. I'll take another look at this next time I work on the code. Thanks for your feedback.
Check out my blog for useful scripts, mods and tips... http://igurublog.wordpress.com
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: PCManFM Mod - User-Definable Commands And More

Post by IgnorantGuru »

Tilsan wrote:how can I enable icons for the new commands in the right click menu
Today's update to pcmanfm-mod (1.0.2) enables the user command icons in the right-click menu (but not in the Tools menu). Just set "Icon=" in the associated desktop file.

This update also adds the ability to drag and drop files into the directory tree side pane, as well as a few other things.

http://igurublog.wordpress.com/downloads/mod-pcmanfm/
Check out my blog for useful scripts, mods and tips... http://igurublog.wordpress.com
Tilsan
Posts: 3
Joined: Sat Jun 12, 2010 9:39 am

Re: PCManFM Mod - User-Definable Commands And More

Post by Tilsan »

Good work IgnorantGuru, keep going at this pace and you'll have to change your name to NotSoIgnorantGuru :)
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: PCManFM Mod - User-Definable Commands And More

Post by IgnorantGuru »

For those still interested in the legacy version of pcmanfm, pcmanfm-mod v1.1.0 is available. This now builds as "pcmanfm-mod" and will install and run independently of other versions of pcmanfm you have installed. It also uses its own user config folder.

Changes to this version include:

* makefiles have been changed to build and install as “/usr/bin/pcmanfm-mod”
* AUR package has been updated – installs as pcmanfm-mod, provides pcmanfm
* uses $XDG_CONFIG_HOME/pcmanfm-mod/ as config folder – imports from
pcmanfm if missing
* Compress and Extract functions now support tar.xz
* Default save folder of Compress function now working folder (bugfix)
* program icons (normal and root user) changed
* middle-click on tab now closes it (Firefox style)
* Create new file/folder in detailed list view now focuses new file (same behavior as icon view)
* File list is given focus after create new file/folder (all views)

http://igurublog.wordpress.com/downloads/mod-pcmanfm/

NOTE FOR LXDE USERS:
The new version of PCManFM-Mod installs itself as /usr/bin/pcmanfm-mod, but LXDE uses /usr/bin/pcmanfm for its desktop management. Thus if you want PCManFM-Mod to be your main FM and manage the desktop, you may need to create a link:

Code: Select all

sudo ln -s /usr/bin/pcmanfm-mod /usr/bin/pcmanfm
Or, if you use Arch Linux, uninstall the pcmanfm-mod AUR package and install pcmanfm-mod-prov instead, which will create the above link automatically.
Check out my blog for useful scripts, mods and tips... http://igurublog.wordpress.com
DDZ
Posts: 34
Joined: Wed Aug 25, 2010 5:48 pm

Re: PCManFM Mod - User-Definable Commands And More

Post by DDZ »

Hello

I use Fedora 13 LXDE and I want to install PCManFM-Mod 1.1.1 but compiling successfully the sources is impossible. I couldn't find RPM package.
I send an email to the ignorantguru and he needs your help too to write what in the doc what it is required to run PCManFM-Mod with Fedora.


I installed all dependencies. The configure script works fine :

Code: Select all

./configure --prefix=/usr
Then, the compilation :

Code: Select all

make
This is the result (last lines because this forum doesn't accept all caracters, too much) :
/usr/bin/ld: pcmanfm_mod-desktop-window.o: undefined reference to symbol 'XClearWindow'
/usr/bin/ld: note: 'XClearWindow' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [pcmanfm-mod] Erreur 1
make[1]: quittant le répertoire « /home/username/folder/pcmanfm-mod-1.1.1/src »
make: *** [all-recursive] Erreur 1

The author specified adding this

Code: Select all

AC_CHECK_LIB(X11, XClearWindow)
to configure.in

then this command :

Code: Select all

NOCONFIGURE=x ./autogen.sh
This is the result :
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

processing .
Creating ./aclocal.m4 ...
Running glib-gettextize... Ignore non-fatal messages.
Copying file mkinstalldirs
Copying file po/Makefile.in.in

Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Making ./aclocal.m4 writable ...
Running intltoolize...
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Running aclocal ...
Running automake --gnu ...
data/Makefile.am:50: `%'-style pattern rules are a GNU make extension
src/Makefile.am:18: compiling `mime-type.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.in'
Running autoconf ...
Skipping configure process.
Then :

Code: Select all

./configure --prefix=/usr
Result :
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for XClearWindow in -lX11... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether NLS is requested... yes
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking for SN... yes
checking whether /usr/bin/ld accepts --as-needed... yes
checking whether /usr/bin/ld accepts -O1... yes
checking whether /usr/bin/ld accepts -Bsymbolic-functions... yes
checking for HAL... yes
checking fam.h usability... yes
checking fam.h presence... yes
checking for fam.h... yes
checking for FAMOpen in -lfam... yes
checking for FAMNoExists... yes
checking for euidaccess... yes
checking for eaccess... yes
checking for statvfs... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed... af ar da ca cs de es et eu fa fi fr gl he hr hu id it ja ko lt ml ms nb nl nn pl ps pt pt_BR ru sk sl sv tr uk ur ur_PK vi zh_CN zh_TW
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating data/Makefile
config.status: creating data/pcmanfm-mod.desktop
config.status: creating data/pcmanfm-mod-find.desktop
config.status: creating data/pcmanfm-mod-folder-handler.desktop
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

PCManFM-Mod File Manager..................... : Version 1.1.1

Prefix....................................... : /usr
Linux HAL support............................ : yes
Linux inotify support (currently broken)..... : no
64-bit Large file support.................... : yes
Show warnings if run as super user........... : yes
Desktop icon integration..................... : yes

The binary will be installed in /usr/bin

http://igurublog.wordpress.com/downloads/mod-pcmanfm/

Please read README carefully if you are packaging PCManFM-Mod.
And then :

Code: Select all

make
Result (last lines because this forum doesn't accept all caracters, too much) :
/usr/bin/ld: pcmanfm_mod-exo-icon-view.o: undefined reference to symbol 'pow@@GLIBC_2.0'
/usr/bin/ld: note: 'pow@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [pcmanfm-mod] Erreur 1
make[1]: quittant le répertoire « /home/username/folder/pcmanfm-mod-1.1.1/src »
make: *** [all-recursive] Erreur 1
I don't understand what's happening and how to compile the sources successfully. I installed libtool, libtool-ltdl, libtool-ltdl-devel and all glibc (with devel) packages but same thing !


Any idea ?
Thank you in advance for your help ! :-)
Last edited by DDZ on Fri Sep 17, 2010 8:44 am, edited 2 times in total.
Lubuntu 12.10
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: PCManFM Mod - User-Definable Commands And More

Post by IgnorantGuru »

@DDZ
You can probably correct the libm error by adding
AC_CHECK_LIB(m)
It seems Fedora requires explicit DSO links. You might have a look here...
https://fedoraproject.org/wiki/Understa ... LinkChange

If you let me know the necessary additions to configure.in for it to build correctly on Fedora, I'll consider adding them in the distributed version - thanks.
Check out my blog for useful scripts, mods and tips... http://igurublog.wordpress.com
Locked