Skip to content

Commit

Permalink
Merge pull request #356 from jmlich/find-my-phone-ubuntu
Browse files Browse the repository at this point in the history
Enable find my phone on Ubuntu Touch
  • Loading branch information
piggz authored Apr 12, 2024
2 parents d3f098c + 15c28e1 commit 477c46e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions daemon/daemon.pro
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ flavor_silica {
calendar
} else:flavor_uuitk {
DEFINES += UUITK_EDITION
LIBS += -lpulse-simple
PKGCONFIG += libpulse
WATCHFISH_FEATURES += music \
voicecall \
notificationmonitor \
Expand Down
11 changes: 8 additions & 3 deletions daemon/src/deviceinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <KDb3/KDbDriverManager>
#include <KDb3/KDbTransactionGuard>

#ifdef MER_EDITION_SAILFISH
#if defined(MER_EDITION_SAILFISH) || defined(UUITK_EDITION)
#include <pulse/simple.h>
#include <pulse/error.h>
#endif
Expand Down Expand Up @@ -684,7 +684,7 @@ void DeviceInterface::findDevice()

m_playedSounds++;

#ifdef MER_EDITION_SAILFISH
#if defined(MER_EDITION_SAILFISH) || defined(UUITK_EDITION)

/* The Sample format to use */
static const pa_sample_spec ss = {
Expand All @@ -696,11 +696,16 @@ void DeviceInterface::findDevice()
pa_simple *s = NULL;
int error;


#ifdef MER_EDITION_SAILFISH
QFile file("/usr/share/harbour-amazfish/chirp.raw");
#else // elif defined(UUITK_EDITION)
QFile file("/opt/click.ubuntu.com/uk.co.piggz.amazfish/current/share/harbour-amazfish/chirp.raw");
#endif

if(!file.open(QIODevice::ReadOnly))
{
qDebug() << "Unable to open chirp sound";
qWarning() << Q_FUNC_INFO << "Unable to open chirp sound";
return;
}

Expand Down

0 comments on commit 477c46e

Please sign in to comment.