Skip to content

Commit

Permalink
pebble-remote was made can be installed with 'python setup.py install'
Browse files Browse the repository at this point in the history
  • Loading branch information
GulsahKose committed Jan 15, 2015
1 parent 4702c0f commit 5af3e9a
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 4 deletions.
16 changes: 16 additions & 0 deletions libpebble/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#Language Files

include pebble/data/i18n/ca/LC_MESSAGES/pebble-remote.mo
include pebble/data/i18n/tr/LC_MESSAGES/pebble-remote.mo
include pebble/data/i18n/es/LC_MESSAGES/pebble-remote.mo
include pebble/data/i18n/it/LC_MESSAGES/pebble-remote.mo

#Manual page

include pebble/data/man/pebble-remote.1.gz

#Mimetype files

include pebble/data/mimetype/pebble-remote
include pebble/data/mimetype/pebble-remote.desktop
include pebble/data/mimetype/pebble-remote.png
2 changes: 1 addition & 1 deletion libpebble/pebble/data/scripts/pebble-remote
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ then

else

/usr/bin/p.py --pebble_id $PEBBLE_ID $PARAMETERS $SUBCOMMAND $APP_NAME $1
p.py --pebble_id $PEBBLE_ID $PARAMETERS $SUBCOMMAND $APP_NAME $1

fi

5 changes: 2 additions & 3 deletions libpebble/pebble/p.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import pebble as libpebble
import time
import pexpect
import i18n
import platform
import tkMessageBox

from Tkinter import *
from pebble import i18n

_ = i18n.language.gettext

Expand Down Expand Up @@ -50,7 +50,6 @@ def cmd_remote_linux(pebble, args):
def libreoffice_event_handler(event):
right_click = "xdotool key --window "+ window_id + "Right"
left_click = "xdotool key --window "+ window_id + "Left"
exit_click = "bash /usr/lib/python2.7/pebble/exit_click"

if event == "next":
pexpect.run(right_click)
Expand All @@ -72,7 +71,7 @@ def libreoffice_event_handler(event):
if len(window_ids)<2:
altf4_edit = "xdotool windowactivate --sync "+window_ids[0]+" key --clearmodifiers --delay 100 alt+F4"
pexpect.run(altf4_edit)
pexpect.run(exit_click)
pexpect.run("exit_click.sh")
except Exception as e:
raise e
print event
Expand Down
32 changes: 32 additions & 0 deletions libpebble/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from setuptools import setup

setup(name='pebble',
version='2.0',
description='Remote control on LibreOffice Impress with Pebble',
url='http:https://github.com/LibreOffice/impress_remote/pebble',
author='Gulsah KOSE',
author_email='[email protected]',
license='MPLv2',
packages=['pebble'],
scripts=[
'pebble/p.py',
'pebble/data/scripts/pebble-remote'
],
package_data={
'data/i18n/ca/LC_MESSAGES': ['pebble-remote.mo'],
'data/i18n/tr/LC_MESSAGES': ['pebble-remote.mo'],
'data/i18n/es/LC_MESSAGES': ['pebble-remote.mo'],
'data/i18n/it/LC_MESSAGES': ['pebble-remote.mo'],
'data/mimetype': ['pebble-remote','pebble-remote.png','pebble-remote.desktop']
},
data_files=[
('/opt/pebble/i18n/ca/LC_MESSAGES', ['pebble/data/i18n/ca/LC_MESSAGES/pebble-remote.mo']),
('/opt/pebble/i18n/tr/LC_MESSAGES', ['pebble/data/i18n/tr/LC_MESSAGES/pebble-remote.mo']),
('/opt/pebble/i18n/es/LC_MESSAGES', ['pebble/data/i18n/es/LC_MESSAGES/pebble-remote.mo']),
('/opt/pebble/i18n/it/LC_MESSAGES', ['pebble/data/i18n/it/LC_MESSAGES/pebble-remote.mo']),
('/usr/share/man/man1', ['pebble/data/man/pebble-remote.1.gz']),
('/usr/share/applications', ['pebble/data/mimetype/pebble-remote.desktop']),
('/usr/share/menu', ['pebble/data/mimetype/pebble-remote']),
('/usr/share/pixmaps', ['pebble/data/mimetype/pebble-remote.png'])
],
zip_safe=False)

0 comments on commit 5af3e9a

Please sign in to comment.