(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Sep 2020, 03:34
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
Find'N'Run
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 2 of 7 [104 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Wed 25 Mar 2015, 01:17    Post subject:  

Works nice in the puppies I tried it Very Happy
Do you think that adding the icon, form the icon field, in every entry (for the "visual types") would be too much hassle or even confusing?

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 968
Location: Mid-mitten

PostPosted: Wed 25 Mar 2015, 01:56    Post subject:  

Moat wrote:
Would it be possible to incorporate this into the (first, main) menu window (like a 'category')?


Ha! Answered my own question...

In ~/root/.config/lxpanel/default/panels/panel I snuck in @ line 38...

Code:
separator {
        }
        item {
           image=findnrun.png
           name=Find'N'Run
           action=findnrun
        }


... and it works!

Bob
add findnrun to lxmenu.jpg
 Description   Precise571/OpenboxPlus
 Filesize   82.79 KB
 Viewed   444 Time(s)

add findnrun to lxmenu.jpg

Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Wed 25 Mar 2015, 05:41    Post subject:  

musher0 wrote:
You do not know dmenu?

I didn't. But from what I saw @Arch forum it must be a very flexible piece of code.

LazY Puppy wrote:
application of the month 03/2015!

Thanks. Laughing

jamesbond wrote:
quicklaunch

I came to the same idea - one click less to access it.
Thank you!

mavrothal wrote:
Do you think that adding the icon, form the icon field, in every entry (for the "visual types") would be too much hassle or even confusing?

I think it would heavily overcomplicate already overcomplicated searching code.
I'm not saying no, though, because this also crossed my mind, but the code needs to be simplified first and maybe then.

Moath wrote:
Ha! Answered my own question...

I'm glad you have resolved it.

Thanks all &
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 3475
Location: The Blue Marble

PostPosted: Wed 25 Mar 2015, 06:43    Post subject:  

Suggestion: in addition to /usr/share/applications, how about searching /usr/local/share/applications and $HOME/.local/share/applications (or $XDG_DATA_HOME/applications) too (if they exists)? According to XDG these directories can also contain .destkop files.
_________________
Fatdog64 forum links: Latest version | Contributed packages | ISO builder
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Wed 25 Mar 2015, 07:04    Post subject:  

Yeah, I thought about it too, but the original code was able to handle only one location.
Now it makes no difference as the executing code is searching through Name fields (not filenames), so sure - will be added to the next version.
Although I'm not sure which location would be more fool-proof (especially in Puppyland) - $HOME or $XDG? Should I flip a coin? Wink
Or maybe simply add both of them (duplicates will be filtered out anyway)..?

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 3475
Location: The Blue Marble

PostPosted: Wed 25 Mar 2015, 07:09    Post subject:  

I thought you could just add the additional directories in the "grep" line? Yes, duplicates will be weeded out anyway. As for $HOME or $XDG, I think recent puppies have both of them set, so I would go with $XDG_DATA_HOME. Btw, /usr/share and /usr/local/share are actually $XDG_DATA_DIRS but nobody uses that in the scripts as far as I know Wink
_________________
Fatdog64 forum links: Latest version | Contributed packages | ISO builder
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Wed 25 Mar 2015, 07:32    Post subject:  

Ok, v0.9 uploaded.

Thanks &
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Wed 25 Mar 2015, 08:10    Post subject:  

SFR wrote:
LazY Puppy wrote:
application of the month 03/2015!

Thanks. Laughing

I mean that! Cool Smile

In addition modifying this is big FUN.

Now 6 different locations

- /usr/share/applications
- $LP2BPL/$myscripts (Scripts)
- $LP2PPL/$myportableroxappsdir (RoxApps)
- $LP2BPL/$my1portables/$my4portableslinux (Portable Linux)
- $LP2BPL/$my1portables/$my3portableswine (Portable Wine)
- $LP2BPL/$mylocallp2bdl (SFS Modules)

Renamed to RSH's Application-Kiosk (the new one).

Thanks again for the pretty much useful code in Find'N'Run!
image-2.jpg
 Description   
 Filesize   71.03 KB
 Viewed   345 Time(s)

image-2.jpg


_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Wed 25 Mar 2015, 11:36    Post subject:  

Hi SFR and co-conspirators et al,

Thank you. I am absolutely delighted with version 0.4 and I may not upgrade.

I’ve amended the title, height, width, and position and the tooltips now read:
Input letters ✫ or +
Double click or ENTER (unless ✫)

The ✫ indicates an app that does not work (either because I failed to set up the .desktop file properly or because the app does not work with my hardware).

The + indicates a favoured app (though rarely needed) and placing a + in the search box immediately displays the relatively short list of those apps.

I have many SFS and Wine apps that I would like to make working F ‘n’ R .desktop files of. So any set-up tips from RSH et al would be much appreciated.

However, unlike RSH and his multiple lists I would allocate a symbol to each type so as to be able to extract separate SFS and Wine lists (again editable, with the addition of a +).

My regards
F'n'R.png
 Description   
 Filesize   39.76 KB
 Viewed   318 Time(s)

F'n'R.png

Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Wed 25 Mar 2015, 12:38    Post subject:  

Jasper wrote:
I have many SFS and Wine apps that I would like to make working F ‘n’ R .desktop files of. So any set-up tips from RSH et al would be much appreciated.

Attached is a script (fake .gz, as usual) I'm using to create .desktop files from my external Scripts directory.

Path to my Scripts directory is:

- ScriptsPath="$LP2BPL/$myscripts"

which will return:

- /mnt/sdd1/Skripte

It searches directory /mnt/sdd1/Skripte with -maxdepth 2, so it grabs Scripts in /mnt/sdd1/Skripte plus one deeper level (sub-directory, categories of Scripts, example: /mnt/sdd1/Skripte/MouseSettings etc.pp.) to get all the Scripts. Also it skips some files and directories equal to my Menu-Pipes.

I would like to see your code to apply the ✫ or + to the listed files.

Btw.: I have now added a seventh list, my files in:

- $LP2BPL/$mydirsdir

which returns

- /mnt/sdd1/Dateien

used -maxdepth 3 to fit to my setup. Files are sent to a heavily modified defaulthandler. Also added options to send images to defaultimageeditor instead of viewer, as well as to send music files to defaultaudioeditor instead media player.

All the list are refreshed by the content of the single entry widget - how I do prefer it.

See Image...
image-3.jpg
 Description   
 Filesize   64.99 KB
 Viewed   286 Time(s)

image-3.jpg

build-desktop-files-from-scripts-dir.gz
Description 
gz

 Download 
Filename  build-desktop-files-from-scripts-dir.gz 
Filesize  2.33 KB 
Downloaded  330 Time(s) 

_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Wed 25 Mar 2015, 14:59    Post subject:  

Hi RSH,

Thank you for your
build-desktop-files-from-scripts-dir.gz
which I have downloaded and will try later.

I'm sorry I cannot reciprocate your help,
since I added my ✫ and + symbols manually.

My regards
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Thu 26 Mar 2015, 22:46    Post subject:  

Jasper wrote:
Hi RSH,

Thank you for your
build-desktop-files-from-scripts-dir.gz
which I have downloaded and will try later.

I hope it's somehow helpful.

Jasper wrote:
I'm sorry I cannot reciprocate your help,
since I added my ✫ and + symbols manually.

My regards

Never Mind.

_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Fri 27 Mar 2015, 01:19    Post subject:  

Hi.

Again me, just a quick update.

I have made functions/buttons to open directories of my Scripts and RoxApps etc.pp. as well as to update the related lists.

Also I've included a function to have a preview of images in the list of my files, therefor I've again added a second entry field to be able to search for apps and files separately.

A second tab was added wherein all opened windows on all desktops are listed and can be managed, like move them around to different desktops and many more (based on an earlier script by Mochi Moppel).

It's now some kind of a pretty cool Control Center for all my apps, files and additional stuff.
image-2.jpg
 Description   
 Filesize   108.52 KB
 Viewed   235 Time(s)

image-2.jpg


_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Fri 27 Mar 2015, 08:31    Post subject:  

What a waste of time and talent, as my medieval friend Ockham would say...

Use dmenu2, Laides and Gentlemen, dmenu2...

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Fri 27 Mar 2015, 10:40    Post subject:  

Hi guys,

I think someone (perhaps L18L) reported findnrun's run time as 22 milliseconds. In any case my searches are, to my eyes, instantaneous.

Seems to me that's time saved not time wasted and I'm delighted SFR wasted his time and talent helping himself, me and others.

My regards

I'll probably have a look at musher0's suggestion, but meantime I'll wait to see if technosaurus (king of speed) has any comment.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 7 [104 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0677s ][ Queries: 12 (0.0129s) ][ GZIP on ]