Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 80337 Details for
Bug 91558
new ebuilds:bluetooth-alsa-1.6-r2.ebuild btsco-0.4a.ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
.kde/share/apps/kbluetoothd/discovery_jobs/Headset
Headset (text/plain), 2.31 KB, created by
Gustavo Sverzut Barbieri
on 2006-02-20 19:45:59 UTC
(
hide
)
Description:
.kde/share/apps/kbluetoothd/discovery_jobs/Headset
Filename:
MIME Type:
Creator:
Gustavo Sverzut Barbieri
Created:
2006-02-20 19:45:59 UTC
Size:
2.31 KB
patch
obsolete
>#!/bin/sh > ># This script will pop up a dialog whenever a device was found or lost. ># You can use this as a template for your own device discovery job. ># ># When this script is called by kbluetoothd, there will be several ># special environment variables defined: ># ># $FOUND_DEVICES: ># This is a list of bluetooth device addresses of all devices ># which have been detected since the last invocation of the script. ># $LOST_DEVICES: ># These are the devices which were reachable during the last run, ># but have disappeared in the meantime. ># $CURRENT_DEVICES: ># This is complete list of devices which are reachable at the moment. ># $JOB_PATH: ># The full path name of the currently running script ># $JOB_DIR: ># The directory in the user's home directory where the jobs are stored ># $JOB_TEMPLATE_DIR: ># The directory containing the job templates ># ># This script will be called with one single parameter: ># "run": The script should be executed ># "configure": Lets the user configure the script. > >case "$1" in > run) > # Look up the name for each found/lost device with the > # device name cache of kbluetoothd via dcop > FOUND=" " > for dev in $FOUND_DEVICES ; do > FOUND="$FOUND $(dcop kbluetoothd DeviceNameCache getCachedDeviceName $dev)" > done > > LOST=" " > for dev in $LOST_DEVICES ; do > LOST="$LOST $(dcop kbluetoothd DeviceNameCache getCachedDeviceName $dev)" > done > > # Display a notification dialog for the found/lost devices with kdialog > if [ "$FOUND" != " " ] ; then > kdialog \ > --yesno "Found headset: $FOUND ($FOUND_DEVICES). Run bluetooth-alsa daemon (btsco)?" \ > --title "Found headset" > ret=$? > if [ $ret -eq 0 ]; then > btsco -s -f "$FOUND_DEVICES" > else > kdialog --msgbox "You should run bluetooth-alsa daemon manually, otherwise you cannot use this headset." > fi > fi > > if [ "$LOST" != " " ] ; then > kdialog --msgbox "Lost devices:$LOST" --title "Lost devices" > fi > ;; > > configure) > # Simply run kedit let the user edit this script. > # A more sophisticated solution might use kdialog to hide > # the shell script from the user > kedit "$JOB_PATH" > ;; >esac >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 91558
:
58130
|
58131
|
58132
|
58133
|
74911
|
74912
|
75892
|
75989
|
76076
|
76128
|
76129
|
76130
|
76131
|
77427
|
77428
|
79189
|
79190
|
79835
|
79836
|
80065
|
80066
| 80337 |
80338
|
86024
|
92013
|
105443
|
105450
|
105556
|
105793
|
105795
|
109657
|
112916
|
112918
|
112919
|
115957
|
116063
|
117200
|
124658
|
124659
|
124661
|
124667
|
124926
|
126016
|
145630
|
183254