pFind 6.3

Filemanagers, partitioning tools, etc.
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#406 Post by don570 »

Is there a version of Pfind for Thunar file manager?

The reason I ask is Saluki uses Thunar.

___________________________________________

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#407 Post by disciple »

You can configure it to use thunar instead of rox in the Pfind settings (or by editing /usr/local/pfind/pfindrc), can't you?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#408 Post by zigbert »

disciple wrote:can't you?
Yes you can

Image

oliverjames
Posts: 46
Joined: Sat 04 Apr 2009, 11:40
Location: Divonne-les-Bains, France

#409 Post by oliverjames »

Running Pfind in XFCE/Saluki

@Zigbert, Yes you can, and I've tried that but to no avail. Tried also changing the commands on the "commands" tab, rox /tmp/searchresult/ changed to thunar /tmp/searchresult/, but Pfind will not open the location of a search result.

Can anyone help identify a fix for this?

Maybe a workaround would be to install Rox.

Cheers

Oliverjames

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#410 Post by Geoffrey »

oliverjames wrote:Running Pfind in XFCE/Saluki

@Zigbert, Yes you can, and I've tried that but to no avail. Tried also changing the commands on the "commands" tab, rox /tmp/searchresult/ changed to thunar /tmp/searchresult/, but Pfind will not open the location of a search result.

Can anyone help identify a fix for this?

Maybe a workaround would be to install Rox.

Cheers

Oliverjames
Saluki has pfind and pfilesearch already installed as standard, pfind is in the main menu named Find... and pfilesearch is in the right click menu of Thunar, it searchs the the directory you are in when it is run, so there is no need to install it.

oliverjames
Posts: 46
Joined: Sat 04 Apr 2009, 11:40
Location: Divonne-les-Bains, France

#411 Post by oliverjames »

Yes, but it doesn't give the functionality I seek.

Pfilesearch brings up a list of file locations. However if one wishes to open the location it is necessary to execute a lot of keystrokes.

With Pfind in a Puppy distro using Rox one can search, and then highlight a result and select "open location". Very slick and fast.

This is what I wish to replicate in Saluki. Hence my question about the "commands" tab. see attachment

Furthermore, when I try to edit the Pfind > configure > commands > View in FileManager setting I cannot write Thunar with a capital T which maybe the reason why it cannot launch. Changing the case of an executable command is always an error.

Oliverjames.
Attachments
Screenshot.png
(38.39 KiB) Downloaded 489 times
Last edited by oliverjames on Sun 18 Mar 2012, 19:15, edited 1 time in total.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#412 Post by zigbert »

oliverjames
Do you know the command to open thunar in a specific directory.
is thunar /tmp valid from terminal?

Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#413 Post by zigbert »

I see....

See line 9 in /usr/local/pfind/func_showlocation:

Code: Select all

exec $FILEMANAGER -s "$FILE" 2> /tmp/pfind-error$PROGPID
Rox requires the -s switch to show location of file. Without -s MIME kicks in... What switch does thunar use?


Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#414 Post by zigbert »

If Pfind is default in Saluki, the config should be edited as Pburn (and Rox) isn't a part of the iso.


Sigmund

oliverjames
Posts: 46
Joined: Sat 04 Apr 2009, 11:40
Location: Divonne-les-Bains, France

#415 Post by oliverjames »

Do you know the command to open thunar in a specific directory.
is thunar /tmp valid from terminal?
I'm not quite sure what you mean by the first sentence.
thunar /tmp is not valid but Thunar /tmp is.
Rox requires the -s switch to show location of file. Without -s MIME kicks in... What switch does thunar use?
I'm not sure of the Thunar switch, looking now.

It would nice to have Pburn as standard in the iso, although Pfind is included in Saluki 013. I find both to be very efficient; XFburnn seems to work OK, although I note that one cannot select slow burn speeds.

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#416 Post by Geoffrey »

zigbert wrote:I see....

See line 9 in /usr/local/pfind/func_showlocation:

Code: Select all

exec $FILEMANAGER -s "$FILE" 2> /tmp/pfind-error$PROGPID
Rox requires the -s switch to show location of file. Without -s MIME kicks in... What switch does thunar use?


Sigmund
Hi Sigmund,

I had the same sort of a problem with trios youtube downloader, Thunar doesn't seem to have a switch that will strip the file name/target from the path,
I was just seeing what would work to fix this, I tried this,

Code: Select all

#!/bin/sh
##Thunar open location
#
LOC="${@%/*}/"
exec Thunar "$LOC"
I called it thunar and placed it in /usr/bin , and to see if it worked placed it in your script like so

Code: Select all

exec thunar "$FILE" 2> /tmp/pfind-error$PROGPID
this appears to work at opening the file location in Thunar, I just don't know how to include it without breaking anything.

Edit: this works also, though I don't have rox installed on Saluki to see if rox has a problem with it, but if not then it should be compatible with all file-managers and do away with the -s.

Just a thought , I installed rox and it works with it also so it looks as if it will work with all file managers :wink:

@oliverjames,

Try the code below and see if it works the way you want it too, if it does cool, to easy 8)


Code: Select all

exec $FILEMANAGER "${FILE%/*}/" 2> /tmp/pfind-error$PROGPID
I'm still testing this, Thunar is having a problem opening location's on loaded sfs file's, rox seems fine even with the changed code :?

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#417 Post by disciple »

Just a thought , I installed rox and it works with it also so it looks as if it will work with all file managers
The point with rox -s is that it is supposed to actually show you the file, not just open the directory containing it. The difference is particularly significant if a directory has a lot of files in it.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#418 Post by Geoffrey »

disciple wrote:
Just a thought , I installed rox and it works with it also so it looks as if it will work with all file managers
The point with rox -s is that it is supposed to actually show you the file, not just open the directory containing it. The difference is particularly significant if a directory has a lot of files in it.
I now see, so it won't be fully compatible with Thunar, I guess rox will have to be used then, pitty, I had to see if it would work though, oh well, food for thought.

Saluki needs it own apps, sometimes trying to add other Puppy apps just to keep it looking familiar doesn't work, someone with a bit more knowledge may get Pfind working with Thunar. :)

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#419 Post by disciple »

There's no reason you can't use another filer as you suggested if it doesn't have an equivalent of `rox -s` - it just won't be quite as good ;)

Are you sure Thunar doesn't have a switch like that? I seemed to think that it did...
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#420 Post by Geoffrey »

disciple wrote:There's no reason you can't use another filer as you suggested if it doesn't have an equivalent of `rox -s` - it just won't be quite as good ;)

Are you sure Thunar doesn't have a switch like that? I seemed to think that it did...
Not that I'm aware of, all of Thunars options are in the GUI such as custom commands on the right click menu, that's where pfilesearch as been added.

Code: Select all

Application Options:
  -B, --bulk-rename        Open the bulk rename dialog
  --daemon                 Run in daemon mode
  -q, --quit               Quit a running Thunar instance
  -V, --version            Print version information and exit
  --display=DISPLAY        X display to use

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#421 Post by zigbert »

I have added this

Code: Select all

	if [ $FILEMANAGER = rox ]; then
		exec rox -s "$FILE" 2> /tmp/pfind-error$PROGPID
	else
		exec $FILEMANAGER "${FILE%/*}/" 2> /tmp/pfind-error$PROGPID
	fi
Thank you guys!!!
Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#422 Post by zigbert »

Version 4.25
See main post

Changelog
- Added Thunar as optional filemanager (thanks to oliverjames)
- Bugfix: 'Show location' didn't work for other filemanager than rox. (thansk to Geoffrey)

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#423 Post by don570 »

I noticed this bug in several puppies

Here's how to reproduce it:

Right click on folder and choose 'Search inside'.

Make a search inside folder (It can be successful or not)

Now do a search in system files for a file that should be there
like 'mtpaint'

It will give a false report.

Close and relaunch pfind and it will find mtpaint.



__________________________________________

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#424 Post by zigbert »

don570
Yes, I can reproduce it. Added to todo-list.


Thank you
Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#425 Post by zigbert »

Here comes a (working) prototype of next generation of pFind.

It takes advantage of the latest gtkdialog and svg. Be aware of the right-click-menu and the support of multi-selection. The gui is meant to be even simpler than any previous releases.

I am requesting feedback of how you as a user would like it to work.
Please take a look, and tell us your thoughts.

Image

Note!
I have got some bugreports that requires pFilesearch to be updated. This will happen.... For now, let's concentrate on the gui.


Thank you
Sigmund
Attachments
pfind-4.9.8.pet
(14.73 KiB) Downloaded 296 times

Post Reply