Friday, October 07, 2011

Registry entries for TheGun

TheGun is a great replacement for notepad on Windows. It's a bit funny with registering itself to open file types though, but if you add these registry entries (which expect it to be in C:\Program Files\TheGun\THEGUN.EXE) it should work the way you want it.


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pl\OpenWithList]
"g"="THEGUN.EXE"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\OpenWithList]
"g"="THEGUN.EXE"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache]
"C:\\Program Files\\TheGun\\THEGUN.EXE"="TheGun"
"C:\\Progra~1\\TheGun\\THEGUN.EXE"="TheGun"

[HKEY_CURRENT_USER\Software\Classes\Applications\THEGUN.EXE\shell\open\command]
@="C:\\Progra~1\\TheGun\\THEGUN.EXE %1"

[HKEY_CURRENT_USER_Classes\Applications\THEGUN.EXE\shell\open\command]
@="C:\\Progra~1\\TheGun\\THEGUN.EXE %1"

Wednesday, October 05, 2011

rpm queries

The rpm options you usually need:


rpm -qa (list all packages installed
rpm -qf /path/to/file (which package provides this file)
rpm -ql (list the files in a package)



http://www.rpm.org/max-rpm/s1-rpm-query-parts.html