pFind 6.3

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

#401 Post by don570 »

With regards to pfind 422 in Exprimo....

I was tinkering about in pfind and to my amazement
I changed an 'exit' to 'exit 0' (around line 482)
and I can now click the upper close box without
the warning showing.
I just did the change with one line of code.

Warning: I haven't checked with other window managers!

Image

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

#402 Post by zigbert »

don570
Great catch, I will update the pet.


Sigmund

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

#403 Post by zigbert »

Version 4.24
See main post

changelog
- Bugfix: proper exit in E17 (thanks to don570)

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

#404 Post by disciple »

Hi again.
There are a couple of minor bugs in "sort by extension".

1) If a filename has a trailing space before the extension, it disappears from the search results, and if pfind was started from a terminal there is a message there, e.g. after searching in ./ and using "sort by extension" I see this:

Code: Select all

find: ./98 Thirst/04 Father Of Lights.wma: No such file or directory
The filename is actually

Code: Select all

04 Father Of Lights .wma
2) (this one might be some sort of bash vs busybox issue or something, as it doesn't happen on one of my machines)
Files or folders without a "." character in their name disappear from the results, and there is a message in the terminal, e.g. after searching in ./ and using "sort by extension" I see this:

Code: Select all

find: ./98 Thirst.98 Thirst: No such file or directory
find: ./NewFile.NewFile: No such file or directory
There is a directory called "98 Thirst" and a file called "NewFile" in ./
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:

#405 Post by zigbert »

disciple
Added to todo-list


Thank you
Sigmund

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

Post Reply