bgame-hunter / android-notifier

Automatically exported from code.google.com/p/android-notifier
0 stars 0 forks source link

How to remove the null character at the end of the {description} #578

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
IMPORTANT: PLEASE search the existing issues (including closed ones) for
something similar before filing a new one.

DO NOT, I repeat, DO NOT file more duplicates of issue 3 (bluetooth
notifications not working).

What steps will reproduce the problem?
1. Using Linux (ubuntu 14.04)
2. command-line option to notify-send or echo command {description} on any of 
Call, SMS or Ping
3. give error as attached and in log:
ERROR [OperatingSystemProcessManagerImpl] - Error executing notification 
command: notify-send "MyPC - Home (+15555556571)\00"
java.io.IOException: invalid null character in command
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:471)

What is the expected output? What do you see instead?

Remove the \00 in the description sent or received..

What version of the product are you using? On what operating system?

Latest version on Ubuntu 14.04
Please provide the log output if possible (from the alogcat app on android,
Show Log menu on the multiplatform client, or Console on native mac app):

Please provide any additional information below.

Original issue reported on code.google.com by absa...@gmail.com on 9 Oct 2014 at 5:33

Attachments:

GoogleCodeExporter commented 8 years ago
This same issue has been bothering me but it appears android-notifier 
development has been stopped for some time now. Rather than rely on hackish 
fixes everytime android-notifier is installed on a new system, I recompiled 
LibnotifyNotificationBroadcaster with null character stripped before sending 
text to notify-send. Below is repacked deb. The only changes are to 
LibnotifyNotificationBroadcaster.class and the removal of the dependency on 
Java 7. Feel free to verify before installing.

Original comment by brb...@gmail.com on 19 Jan 2015 at 7:14

Attachments: