Skip to content

Commit

Permalink
Copy bluetooth daemon from panel indicator (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryo Nakano <[email protected]>
  • Loading branch information
danirabbit and ryonakano authored Jul 18, 2024
1 parent be77283 commit 7d9cf35
Show file tree
Hide file tree
Showing 435 changed files with 69,631 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
21 changes: 21 additions & 0 deletions .github/workflows/gettext.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Gettext Updates
on:
push:
branches: [main]

jobs:
gettext_template:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_USER_TOKEN }}

- name: Update Translation Files
uses: elementary/actions/gettext-template@main
env:
GIT_USER_TOKEN: ${{ secrets.GIT_USER_TOKEN }}
GIT_USER_NAME: "elementaryBot"
GIT_USER_EMAIL: "[email protected]"
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
version: [stable, unstable, development-target]
container:
image: ghcr.io/elementary/docker:${{ matrix.version }}

steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
apt update
apt install -y libgranite-dev meson valac
- name: Build
env:
DESTDIR: out
run: |
meson setup build
ninja -C build install
lint:
runs-on: ubuntu-latest

container:
image: valalang/lint

steps:
- uses: actions/checkout@v4
- name: Lint
run: io.elementary.vala-lint -d .
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
pull_request:
branches: [main]
types: [closed]
jobs:
release:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && true == contains(join(github.event.pull_request.labels.*.name), 'Release')
steps:
- uses: actions/checkout@v4
- uses: elementary/actions/release@main
env:
GIT_USER_TOKEN: "${{ secrets.GIT_USER_TOKEN }}"
GIT_USER_NAME: "elementaryBot"
GIT_USER_EMAIL: "[email protected]"
with:
release_branch: "noble"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*~
build
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# bluetooth-daemon
# Bluetooth Daemon

Send and receive files via bluetooth

## Building and Installation

You'll need the following dependencies:

libgranite-dev >= 6.0.0
libgtk3-dev
meson
valac

Run `meson` to configure the build environment and then `ninja` to build

meson setup build --prefix=/usr
cd build
ninja

To install, use `ninja install`

ninja install
12 changes: 12 additions & 0 deletions data/bluetooth-daemon.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Name=Bluetooth
Comment=Bluetooth obex
Exec=io.elementary.bluetooth -s
Icon=bluetooth
Type=Application
NoDisplay=true
Categories=System;
X-GNOME-Autostart-Notify=false
X-GNOME-AutoRestart=true
X-GNOME-Autostart-enabled=true
OnlyShowIn=Pantheon;
9 changes: 9 additions & 0 deletions data/bluetooth.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=Bluetooth
Comment=Bluetooth obex
Exec=io.elementary.bluetooth
Icon=bluetooth
Type=Application
NoDisplay=true
Categories=System;
OnlyShowIn=Pantheon;
14 changes: 14 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
install_data(
'bluetooth-daemon.desktop',
rename: meson.project_name() + '.desktop',
install_dir: get_option('sysconfdir') / 'xdg' / 'autostart'
)

i18n.merge_file(
input: 'bluetooth.desktop',
output: meson.project_name() + '.desktop',
po_dir: meson.project_source_root () / 'po' / 'extra',
type: 'desktop',
install_dir: get_option('datadir') / 'applications',
install: true
)
17 changes: 17 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
project(
'io.elementary.bluetooth',
'vala', 'c',
version: '8.0.0',
meson_version : '>= 0.57'
)

add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language:'c')

i18n = import('i18n')

granite_dep = dependency ('granite')
gtk_dep = dependency ('gtk+-3.0')

subdir('data')
subdir('po')
subdir('src')
202 changes: 202 additions & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
ae
af
ak
am
ar
as
ast
av
ay
az
ba
be
bg
bh
bi
bm
bn
bo
br
bs
ca
ca@valencia
ce
ch
ckb
co
cr
cs
cu
cv
cy
da
de
dv
dz
ee
el
en_AU
en_CA
en_GB
eo
es
et
eu
fa
ff
fi
fil
fj
fo
fr
fr_CA
fy
ga
gd
gl
gu
gv
ha
he
hi
ho
hr
ht
hu
hy
hz
ia
id
ie
ig
ii
ik
io
is
it
iu
ja
jv
ka
kg
ki
kj
kk
kl
km
kn
ko
kr
ks
ku
kv
kw
ky
la
lb
lg
li
ln
lo
lt
lu
lv
mg
mh
mi
mk
ml
mn
mo
mr
ms
mt
my
na
nb
nd
ne
ng
nl
nn
no
nr
nv
ny
oc
oj
om
or
os
pa
pi
pl
ps
pt
pt_BR
qu
rm
rn
ro
ru
rue
rw
sa
sc
sd
se
sg
si
sk
sl
sm
sma
sn
so
sq
sr
sr@latin
ss
st
su
sv
sw
szl
ta
te
tg
th
ti
tk
tl
tn
to
tr
ts
tt
tw
ty
ug
uk
ur
uz
ve
vi
vo
wa
wo
xh
yi
yo
za
zh
zh_CN
zh_HK
zh_TW
zu
aa
ab
gn
an
en_ZA
pap
11 changes: 11 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
src/Application.vala
src/Dialog/BtReceiver.vala
src/Dialog/BtScan.vala
src/Dialog/BtSender.vala
src/Dialog/DeviceRow.vala
src/Services/Adapter.vala
src/Services/Device.vala
src/Services/Manager.vala
src/Services/ObexAgent.vala
src/Services/Session.vala
src/Services/Transfer.vala
Loading

0 comments on commit 7d9cf35

Please sign in to comment.