Top Level Namespace
Defined Under Namespace
Modules: AudioFile, CasheDevice, Enumerable, Mime Classes: BBCNet, CacheHttpDiskDevice, CacheRssDevice, DownloadProcess, FolderSelectorLineEdit, FolderSettingsPage, HBoxLayoutWidget, IRecSettings, LogWindow, MyLogger, OkCancelDialog, PlayerSettingsPage, ProgrammeTableWidget, QCleanupResources__dest_class__, SelectDirectPlayerDlg, SelectServiceDlg, SelectWebPlayerDlg, SettingsBase, SettingsDlg, String, TaskWindow, VBoxLayoutWidget
Constant Summary collapse
- UrlRegexp =
URI.regexp(['rtsp','http'])
Instance Method Summary collapse
-
#openDirectory(dir) ⇒ Object
————————————————————————–.
- #openUrlDocument(url) ⇒ Object
-
#passiveMessage(text) ⇒ Object
————————————————————————–.
Instance Method Details
#openDirectory(dir) ⇒ Object
407 408 409 410 411 |
# File 'lib/mylibs.rb', line 407 def openDirectory(dir) cmd = KDE::MimeTypeTrader.self.query('inode/directory').first.exec[/\w+/] cmd += " " + dir fork do exec(cmd) end end |
#openUrlDocument(url) ⇒ Object
413 414 415 416 417 |
# File 'lib/mylibs.rb', line 413 def openUrlDocument(url) 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 |