Top Level Namespace
Defined Under Namespace
Modules: Enumerable, InstallOption, InstalledGemList, Mime Classes: DetailWin, DockGemViewer, DownloadedTable, DownloadedWin, FetchedGem, FileListWin, FolderSelectorLineEdit, GemHelpDlg, GemItem, GemListTable, GemSourceDlg, GeneralSettingsPage, GenerateRdocDlg, HBoxLayoutWidget, InstallOptionsPage, InstalledGemWin, PreviewWin, SearchTable, SearchWin, SelectDownloadVerDlg, SelectInstallVerDlg, Settings, SettingsBase, SettingsDlg, StaleGemItem, String, TerminalWin, UpdateDlg, VBoxLayoutWidget
Constant Summary collapse
- TrustPolicies =
%w{ NoSecurity LowSecurity MediumSecurity HighSecurity }
Instance Method Summary collapse
-
#openDirectory(dir) ⇒ Object
————————————————————————–.
- #openUrlDocument(url) ⇒ Object
-
#passiveMessage(text) ⇒ Object
————————————————————————–.
Instance Method Details
#openDirectory(dir) ⇒ Object
407 408 409 410 411 412 |
# File 'lib/mylibs.rb', line 407 def openDirectory(dir) return if !dir or dir.empty? cmd = KDE::MimeTypeTrader.self.query('inode/directory').first.exec[/\w+/] cmd += " " + dir fork do exec(cmd) end end |
#openUrlDocument(url) ⇒ Object
414 415 416 417 418 419 |
# File 'lib/mylibs.rb', line 414 def openUrlDocument(url) return if !url or url.empty? cmd = Mime::services('.html').first.exec cmd.gsub!(/%\w+/, url) fork do exec(cmd) end end |
#passiveMessage(text) ⇒ Object
112 113 114 |
# File 'lib/mylibs.rb', line 112 def passiveMessage(text) %x{ kdialog --passivepopup #{text.shellescape} } end |