Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/hans
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# vim: ts=4
# vim: ts=4
# vim: expandtab
###
#
Expand All @@ -19,7 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Authors : David Amián <[email protected]>
#
#
###
import sys
import getopt
Expand Down
8 changes: 4 additions & 4 deletions bin/hans-launcher
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for i in $(seq 0 $((${#SEATS3[*]} - 1))); do
--type=method_call \
--print-reply \
${SEATS3[$i]} org.freedesktop.ConsoleKit.Seat.GetActiveSession 2>&1)

#Check if sessions is active to launch HANS
if [[ ! $DBUS_SESSIONS =~ "no active" && ! -z $DBUS_SESSIONS ]]
then
Expand All @@ -29,7 +29,7 @@ for i in $(seq 0 $((${#SEATS3[*]} - 1))); do
--type=method_call \
--print-reply \
$SESSION org.freedesktop.ConsoleKit.Session.GetUnixUser)

DBUS_X11_DISPLAY=$(dbus-send --system \
--dest=org.freedesktop.ConsoleKit \
--type=method_call \
Expand All @@ -39,12 +39,12 @@ for i in $(seq 0 $((${#SEATS3[*]} - 1))); do
USER=$(getent passwd $(echo $UNIX_USER | sed -n 's/.*uint32 \(.*\).*/\1/gp') | sed -e 's/\:.*//')
#Get user display
X11_DISPLAY=$(echo $DBUS_X11_DISPLAY | sed -n 's/.*string "\(.*\)".*/\1/gp')

export DISPLAY=$X11_DISPLAY
DEFLANG=$(cat /etc/default/locale | awk -F'=' '{print $2}' | sed 's/\"//g')
export LANG=$DEFLANG
#Launch HANS in user session
sudo -Eu $USER /usr/bin/hans -p $1 &>> /tmp/hans.log &

fi
done
4 changes: 2 additions & 2 deletions data/db/android-adb.interface
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[Interface Entry]
Name=ADB Debugger Interface
Notify=ADB Debugger Interface connected
Icon=
Icon=
Action=open
Recommend-Pkg=

Name[es_ES]=Interfaz de depuración ADB
Notify[es_ES]=Interfaz de depuración ADB conectada
2 changes: 1 addition & 1 deletion data/db/application-specific.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=application-specific
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/atm-networking.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=atm-networking
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/audio-control.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=audio-control
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/audio-midi-streaming.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=audio-midi-streaming
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/audio-streaming.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=audio-streaming
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/bluetooth-adapter.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=bluetooth-adapter
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/bluetooth-amp-controller.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=bluetooth-amp-controller
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/cable-based-association.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=cable-based-association
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/capi-2.0-data.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=capi-2.0-data
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/capi-control.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=capi-control
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/cdc-data.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=cdc-data
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/cdc-puf-data.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=cdc-puf-data
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/communications.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=communications
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/content-security.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=content-security
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/device-management.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=device-management
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/device-wire-control-data.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=device-wire-control-data
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/diagnostics.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=diagnostics
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/direct-line.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=direct-line
Notify[es_ES]=New interface connected
4 changes: 2 additions & 2 deletions data/db/ebook.interface
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Interface Entry]
Name=Ebook
Notify=Has conectado un ebook
Icon-Notify=
Icon-Notify=
Action=open
Recommend-Pkg=
Recommend-Pkg=

2 changes: 1 addition & 1 deletion data/db/ethernet-emulation.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=ethernet-emulation
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/ethernet-networking.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=ethernet-networking
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/firmware-upgrade.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=firmware-upgrade
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/hdlc-data.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=hdlc-data
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/hid.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=hid
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/host-based-data-driver.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=host-based-data-driver
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/host-wire-control-data.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=host-wire-control-data
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/hub.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=hub
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/imaging-device.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=imaging-device
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/interface-association.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=interface-association
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/irda-bridge.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=irda-bridge
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/keyboard-hid.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=keyboard-hid
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/mass-storage.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=mass-storage
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/miscellanous-common.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=miscellanous-common
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/miscellanous.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=miscellanous
Notify[es_ES]=New interface connected
2 changes: 1 addition & 1 deletion data/db/mobile-direct-line.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=mobile-direct-line
Notify[es_ES]=New interface connected
4 changes: 2 additions & 2 deletions data/db/mobile.interface
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Interface Entry]
Name=Mobile
Notify=Has conectado un telefono movil
Icon-Notify=
Icon-Notify=
Action=open
Recommend-Pkg=
Recommend-Pkg=

2 changes: 1 addition & 1 deletion data/db/modem-3g.interface
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Notify=New interface connected
Icon=
Action=
Recommend-Pkg=

Name[es_ES]=modem-3g
Notify[es_ES]=New interface connected
Loading