pRun-1.5

Miscellaneous tools
Post Reply
Message
Author
radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

pRun-1.5

#1 Post by radky »

Recommended OS
Puppy Linux with gtkdialog4 (0.7.21 or greater)

Purpose and Base Features
This independent release of pRun is identical to the version in PupMenu, but may be of interest to those who prefer a separate run-dialog utility.

The pRun utility is an application launcher with features similar to standard run-dialog utilities such as gExec, gRun and gmRun. Unlike the companion PupMenu which is an application finder, launcher and editor based on conventional menu files, pRun surveys applications in the PATH environment and provides a scrollable list of executables arranged alphabetically. pRun is a standalone program but will integrate seamlessly with the companion PupApps, PupControl and PupMenu.

You can selectively launch an application with the standard pRun launch button, or enter part of an application name in the search box to quickly parse files in a manner analogous to auto-completion. Pressing the Enter key will launch the first item in the search list, assuming the file is a launchable executable. The option to run an application in a terminal emulator is easily set by the toggle checkbox (Term) which is available on the main user interface. As expected, pRun launches single-name executables in the PATH environment, but also supports command arguments. For example, press the Enter key after typing the following in the search box: defaultbrowser http://www.google.com/

The search box, which features a standard 'clear' icon for starting a new search, is also flanked by two functional icons. Click the left (blue terminal) icon to open the default terminal emulator – with support for rxvt, urxvt, mrxvt, aterm, xterm, konsole, roxterm, sakura, Terminal, terminal, termit, and lxterminal. Click the right (loupe) icon to toggle standard and enhanced search modes. Standard searching in pRun parses the first letter of each PATH application and sorts all names alphabetically. The enhanced search mode enables comprehensive parsing of all character combinations that match the current search parameters. For example, with standard searching, entering 'burn' in the pRun search box will return burniso2cd, but the same entry with enhanced searching will return multiple matches such as burniso2cd, cdburner-wizard and pburn.

In the Preferences module you will find a spinbox option for setting the GUI fontsize (10pt or 11pt), a toggle checkbox which enables/disables a minimal (reduced-size) user interface, a second toggle checkbox which enables/disables the automatic closing of pRun after launching an application, and a third toggle checkbox which enables/disables double-click launching of applications. A combobox drop-down list provides options for the default terminal emulator. The associated 'Close' checkbox determines the post-launch status of the terminal. For example, the terminal must remain open (Close box unchecked) for successful launching of some terminal programs such as the command-line 'cal' utility. However, many terminal programs such as top, htop, e3 and mp will launch properly without holding the terminal open (Close box checked). Generally, if a launchable terminal application aborts while loading, then unchecking the 'Close' checkbox may lead to successful launching. To illustrate this function, select the 'Term' checkbox on the main user interface and deselect (uncheck) the terminal 'Close' checkbox in Preferences, then type 'cal 2015' in the search box and press the Enter key. This will launch the terminal calendar application (cal) and associated argument (2015), with the terminal held open. You will quickly learn the requirements of each terminal application.

Program access is by Puppy Menu->Utility->pRun, or by the default Ctrl+Alt+R keyboard shortcut in supported window managers. This hotkey sequence is already assigned to another utility in Fluxbox, but the Preferences module of pRun will set the Ctrl+Alt+R shortcut in current releases of IceWm, JWM, Openbox, LXDE and LXPanel. Alternatively, utilities such as xbindkey or sven will assign preferred hotkey sequences to almost any application, and a similar function is available in the XFCE4 desktop environment.

One final caveat: Those who are new to the Linux command structure may find run-dialog programs of limited utility due to an abundance of esoteric PATH executables, of which many are unlaunchable. However, with a little patience, most users will find run-dialog utilities are convenient alternatives to the standard menu format of conventional window managers.

Download
http://www.smokey01.com/radky/pRun-1.5.pet

Standard Interface
Image

PupMates
http://www.smokey01.com/radky/PupMates.html
Last edited by radky on Tue 13 Dec 2016, 18:39, edited 13 times in total.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#2 Post by radky »

Version 1.5. See main post
- Add support for the new binary-detection heuristics of grep >= 2.21
- Bugfix: run-in-terminal mode failed in some scenarios

Version 1.4. See main post.
- Adjust user interface for improved accessibility (Main gui and Preferences)
- Add adjustable default height of the applications window (24-300 pixels)

Version 1.3. See main post.
- Updated support for recent changes in Woof-CE.
- Major update to launch-history module.
- Updated Help dialog.
- Added Mini-GUI option (minimal-size interface).
- Added gettext internationalization.

Version 1.2. See main post.
- Improved functionality in non-English locales (i.e., removed LANG=C).
- Added local help file. (thanks ETP)

Version 1.1. See main post.
- Added optional double-click launching of applications (set in Preferences).
- Bugfix: In some scenarios, the search toggle-button icon did not show.
Last edited by radky on Tue 13 Dec 2016, 18:40, edited 8 times in total.
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#3 Post by oldyeller »

Hi radky,

I have been thinking about doing something close to this now it looks like I may not have. Just downloaded and tried it very nice.

Cheers

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#4 Post by radky »

Thanks oldyeller. :)
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#5 Post by radky »

pRun-1.1 is now available. See first post.
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#6 Post by Bert »

Hi Radky,

pRun really is a useful utility, thank you for this.

I translated the gui to Dutch.

And then I discovered pRun opens the applications in their English version, not seeing the user's language settings.

I briefly tried to add some code lines from other scripts, but no luck.

What would it take to make pRun open the apps localized?

"On behalf of the puppy world community: Thanks!" :D
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#7 Post by radky »

Bert wrote:Hi Radky,

pRun really is a useful utility, thank you for this.

I translated the gui to Dutch.

And then I discovered pRun opens the applications in their English version, not seeing the user's language settings.

I briefly tried to add some code lines from other scripts, but no luck.

What would it take to make pRun open the apps localized?

"On behalf of the puppy world community: Thanks!" :D
Hi Bert,

A little history may be helpful before I answer your question.

While developing PupMenu, I found that using the search box to parse the names of applications resulted in significant key lag if the characters are entered too rapidly. However, this problem is circumvented if "LANG=C" is temporarily set each time PupMenu is launched. Then, when you exit PupMenu, the LANG variable is reset automatically to the current default (which would be Dutch for you).

Although LANG=C enhances the search process, it interferes with non-English locales when applications are launched from PupMenu. I suppose one solution (for non-English users) would be to comment the two LANG lines in PupMenu-bin, and accept the potential key lag when using the search box.

Currently, the pRun utility also uses the "LANG=C" workaround to ensure no key lag in the search box. However, in retrospect, probably this is not really necessary since the searched database is both simple and small. So, you could comment lines #16 and #240 in /usr/local/prun/prun (pRun-1.1), effectively removing the code which sets LANG=C. At this point, applications should launch in their non-English versions (if available). But there is one caveat: if you launch pRun from PupMenu, then LANG=C is already set by PupMenu.

Thanks for your comments. :)
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#8 Post by Bert »

Hi Radky,

Thank you very much for the historical explanation and for offering a workaround.

I commented the lines you mentioned, but the applications still opened in English.
Then I remembered there's also a script 'func' in pRun and had a look: yes, line 8 has

Code: Select all

export LANG=C
.

I commented out that line too and success! All apps now open in Dutch 8)

I do not notice lag while typing in a name, but then I type like police officers in old black and white comical movies :lol:

Thanks again for this great help!

Bert
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#9 Post by radky »

Bert wrote:Hi Radky,

Thank you very much for the historical explanation and for offering a workaround.

I commented the lines you mentioned, but the applications still opened in English.
Then I remembered there's also a script 'func' in pRun and had a look: yes, line 8 has

Code: Select all

export LANG=C
.

I commented out that line too and success! All apps now open in Dutch 8)

I do not notice lag while typing in a name, but then I type like police officers in old black and white comical movies :lol:

Thanks again for this great help!

Bert
Hi Bert,

I don't see 'export LANG=C' in /usr/local/prun/func -- at least, not in the original unedited version of pRun-1.1.

But I'm pleased all is well now! :)
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#10 Post by Bert »

That's very strange. I did not edit pRun-func in any way.
It looks like this here:

Code: Select all

#!/bin/bash
#PupMenu 3.4
#pRun 1.1
#Functions
#Copyright 2013 GPL3
#XX

#export LANG=C
. /etc/rc.d/PUPSTATE
Bert
Last edited by Bert on Sun 17 Nov 2013, 21:40, edited 1 time in total.
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#11 Post by radky »

Bert wrote:That's very strange. I did not edit pRun-func in any way.
It looks like this here:

Code: Select all

#!/bin/bash
#PupMenu 3.4
#pRun 1.1
#Functions
#Copyright 2013 GPL3
#Roger Grider (radky)

#export LANG=C
. /etc/rc.d/PUPSTATE
Bert
Hi Bert,

I rechecked by personal files and also downloaded the current pet from http://www.smokey01.com/radky/PupMates.html.

Both sources show the following:

Code: Select all

#!/bin/bash
#PupMenu 3.4
#pRun 1.1
#Functions
#Copyright 2013 GPL3
XX

case "$1" in
#Search
-prun_search)
There is no reference to LANG or PUPSTATE.

Do you recall the source of your pet for PupMenu?
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#12 Post by Bert »

I did a search through my folders and browser history, but no, unfortunately I cannot trace the origin.

I'm pretty sure I downloaded it from the forum.
If I find something, I'll let you know.
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#13 Post by radky »

Bert wrote:I did a search through my folders and browser history, but no, unfortunately I cannot trace the origin.

I'm pretty sure I downloaded it from the forum.
If I find something, I'll let you know.
Thanks Bert :)
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
Eyes-Only
Posts: 1043
Joined: Thu 10 Aug 2006, 06:32
Location: La Confederation Abenaquaise

Thanks for the programme! :)

#14 Post by Eyes-Only »

Hi radky!

This is truly one very helpful programme! I hope that nobody allows the simplistic look of this app to throw them off from downloading it as it's an extremely useful app - moreso than any of the other above-mentioned runner-apps which I've tried before.

I use these starter-apps all the time, my past favourite having been gexec. It's just so much easier to keep one either opened, or handy on the taskbar just a click away, where I can quickly write in the name ( or even the first few letters ) of the app, press the "enter" key - bob's your uncle! - and there's your app all ready to be used. ( Okie... it may sound like more work than using the menu but it's really not and it's actually far faster when working, trust me! )

As I said radky, gexec was my former favourite. Now it has been replaced by a far superior product: pRun. It's going to be a very long time before this new king is dethroned!

Thank you radky for all the hard work you do contributing to the Puppy Community. It is vastly appreciated my friend! 8)

Cheers!/Amicalement!

Eyes-Only
"L'Peau-Rouge d'Acadie"
*~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog. 8)
*~*~*~*~*~*

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#15 Post by radky »

Thank you Eyes-Only. :)

Your kind words are greatly appreciated.
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#16 Post by radky »

Version 1.2. See main post.
- Improved functionality in non-English locales (thanks Bert).
- Added local help file. (thanks ETP)
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#17 Post by radky »

Version 1.3. See main post.
- Updated support for recent changes in Woof-CE.
- Major update to launch-history module.
- Updated Help dialog.
- Added Mini-GUI option (minimal-size interface).
- Added gettext internationalization.
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#18 Post by radky »

Version 1.4. See main post.
- Adjust user interface for improved accessibility (Main gui and Preferences)
- Add adjustable default height of the applications window (24-300 pixels)

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#19 Post by radky »

Version 1.5. See main post
- Add support for the new binary-detection heuristics of grep >= 2.21
- Bugfix: run-in-terminal mode failed in some scenarios
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

Post Reply