Commit graph

91 commits

Author SHA1 Message Date
Pablo Correa Gómez
53a68a88ec
main/postmarketos-base-ui-gnome: new aport (MR 2945)
Shared package for shared gnome and phosh ui configurations

Additionally, added missing dependencies:

Both Phosh and GNOME need elogind to do sleep inhibition and to
provide pam modules. gnome-bluetooth has some small udev rule
that helps marking devices for rfkill. Given that most devices
in pmOS have a bluetooth, this should be useful as a dependency.
2022-03-15 09:52:46 +01:00
Pablo Correa Gómez
aa7e507d8c
main/postmarketos-ui-phosh: move non-relocatable schemas to override (MR 2945)
The dconf configuration and installation file was needed because the
schemas `sm.puri.phoc.application.org-gnome-maps` and
`sm.puri.phoc.application.firefox` are not schemas that can be overriden.
The actual schema is `sm.puri.phoc.application`, which is a relocatable
schema. Therefore, we could use an override to specify the default,
but with a simple configuration file, gsettings cannot relocate the
schema. Therefore, the dconf configuration makes sense for these kind
of schemas. For regular schemas that can be overriden with an override
file, it is simpler to just use it.
2022-03-15 09:52:45 +01:00
Pablo Correa Gómez
2450153249
main/postmarketos-ui-phosh: remove custom button-layout override (MR 2945)
Phosh takes care of it in a smarter way[1]. The custom override also has the
consequence of never showing closing buttons in docked mode, which can be
an inconvenience.

[1] https://gitlab.gnome.org/World/Phosh/phosh/-/blob/main/src/docked-manager.c#L292-L295

Or in case the lines change with time:
```C
phosh_docked_manager_set_enabled (PhoshDockedManager *self, gboolean enable)

  if (enable)
    g_settings_reset (self->wm_settings, WM_KEY_LAYOUT);
  else
    g_settings_set_string (self->wm_settings, WM_KEY_LAYOUT, "appmenu:");
```
2022-03-15 09:52:45 +01:00
Pablo Correa Gómez
8fd97238fb
main/postmarketos-ui-phosh: remove redundant schemas set by Phosh (MR 2945)
Phosh already installs these schemas by default[1] and makes them specific
to the Phosh desktop. Originally these might have been needed because
either Phosh didn't ship the overrides or/and tinydm wasn't setting the
environment variable XDG_CURRENT_DESKTOP properly[2]. To verify that the
behavior of the Phosh override is working as expected one can do the following
from an ssh session (so that the full DE envvars are not set):
```bash
$ export DISPLAY=:0 # so that gsettings reset works
$ gsettings reset org.gnome.desktop.interface clock-show-date
$ gsettings get org.gnome.desktop.interface clock-show-date # false
$ sudo rm /usr/share/glib-2.0/schemas/000-postmarketos.gschema.override
$ sudo glib-compile-schemas --strict /usr/share/glib-2.0/schemas/
$ gsettings get org.gnome.desktop.interface clock-show-date # true (which is the default)
$ export XDG_CURRENT_DESKTOP=GNOME:Phosh
$ gsettings get org.gnome.desktop.interface clock-show-date # false (from phosh override)
```

[1] https://gitlab.gnome.org/World/Phosh/phosh/-/blob/main/data/00_sm.puri.Phosh.gschema.override
[2] https://gitlab.com/postmarketOS/tinydm/-/merge_requests/12
2022-03-15 09:52:45 +01:00
Pablo Correa Gómez
2b307748a6
main/postmarketos-ui-phosh: document reason for osk.sh script (MR 2945) 2022-03-15 09:52:45 +01:00
Pablo Correa Gómez
bf8b2273df
main/postmarketos-ui-phosh: remove firefox scaling (MR 2945)
firefox scaling was set to true before `mobile-config-firefox` existed.
In new installations false is the default, so explicitly stating false is
only necessary for upgrades. Since the default was changed in one and a half
years ago in fef3af0d75 when the
package was still in version 4, removing it should not have any impact. If
anybody had an edge installation not upgrade for more than 1.5 years, it would
definitely be wiser to reinstall than to upgrade.
2022-03-15 09:52:40 +01:00
Clayton Craft
164e9f010d
postmarketos-ui-phosh: enable waked by default (MR 2963)
This will make resuming on alarm work out of the box. Not sure how this
was missed previously...?

[ci:skip-build]: already built successfully in CI
2022-03-01 23:24:31 +01:00
Clayton Craft
5979bd6813
main/postmarketos-ui-phosh: add support for automounting disks (MR 2905)
This installs/starts udiskie, a udisk2 helper, that facilitates
auto-mounting of removable drives.

Note support for umounting is broken in the current Portfolio release,
so disks have to be umounted manually:

    udiskie-umount /run/media/<user>/*

I decided to add this to the `depends` and not `pmb_recommends`, because
I felt like 1) this is a feature that folks would expect to work, 2) by
having it in depends, it'll 'fix' existing installs where mounting
removable disks automatically is not implemented
2022-02-19 23:54:54 -08:00
Pablo Correa Gómez
5eed24ebad
main/postmarketos-ui-phosh: add default handlers for tel and sms (MR 2932)
Closes #929
2022-02-15 21:05:45 +01:00
Oliver Smith
b70a36190b
main/postmarketos-ui-phosh: add !pipewire-pulse (MR 2890)
Prevent apk from pulling in pipewire-pulse instead of pulseaudio, as
this leads to various audio issues with Phosh in postmarketOS (volume
buttons not working, no sound in various applications).

Pipewire will be a great replacement for pulseaudio, but let's rather
enable it intentionally for Phosh once we fixed everything that's
currently breaking with it. Without this patch it may get installed when
installing or upgrading other packages (not entirely sure how it gets
triggered yet, but I have seen it myself multiple times and we've gotten
reports about it).

[ci:skip-build] already built successfully in CI
2022-02-02 12:20:40 -08:00
Dylan Van Assche
284391cd9f
main/postmarketos-ui-phosh: ask for SIM unlock (MR 2896)
Show a prompt at startup to unlock the SIM if it is locked.
2022-02-02 14:35:06 +01:00
Newbyte
ca6579f545
main/postmarketos-ui-phosh: remove notice about numeric passwords (MR 2883)
Phosh supports arbitrary passwords as of release 0.15.0.
2022-01-26 22:18:42 +01:00
Pablo Correa Gómez
c3a61c0b9e
main/postmarketos-ui-phosh: disable gnome-software auto updates (MR 2653)
The `download-updates` keyword is not a good naming, but it does
not only download, but also tries to install the updates
2022-01-20 22:37:04 +01:00
Mike Banon
5ef50b12f2
main/postmarketos-ui-phosh: add yelp to _pmb_recommends (MR 2832)
This helps to ensure that showing Help works at GNOME-based software.

[ci:skip-vercheck]
[ci:skip-build] already built successfully in CI
2022-01-08 11:26:40 -08:00
Caleb Connolly
fe708f8bc3
phosh,plasma-mobile,sxmo-de-dwm,sxmo-de-sway install ttyescape by default (MR 2754)
[ci:skip-build] already built successfully in CI
2021-12-16 16:00:12 -08:00
Oliver Smith
51fce1f111
main/postmarketos-ui-phosh: firefox improvements (MR 2741)
Display the app icon properly, instead of the "unknown" icon, in the
activity view. Phosh attempts to open a .desktop file with the name of
the gtk app-id, but the app-id is "firefox" and the file is named
org.mozilla.firefox.desktop (see related commit, where it was renamed
for a good reason). The way Phosh is doing the name lookup doesn't
always work for other apps too, phosh_get_desktop_app_info_for_app_id()
has workarounds e.g. for gnome-control-center hardcoded. As workaround,
add a .desktop file that makes the icon show up properly, but is not
displayed anywhere else (NoDisplay=true).

Replace epiphany with FF in the default favorite applications in phosh
(top 4 displayed at the top). We already install FF instead of epiphany
and so the 4th place is currently empty.

Related: 2d291a4afc
2021-12-13 13:12:01 +01:00
Oliver Smith
3d06bf36dc
main/postmarketos-ui-*: link to UI pkg reference (MR 2683)
Let every postmarketos-ui-* package have a link on top that points to
the new UI package reference. Do not put the link in <>, as it was done
with other references, since there's no benefit to it. It doesn't look
better and it doesn't make it easier to click the link or something, I
just did this initially because I saw it in GPL license headers.

[ci:skip-vercheck] [ci:ignore-count]
2021-11-14 18:30:27 +01:00
Oliver Smith
69dc4449f0
main/postmarketos-ui-phosh: depend on mm-openrc (MR 2675)
Let postmarketos-ui-phosh depend on modemmanager and
modemmanager-openrc, so we ensure both get installed before the
post-install script runs. The post-install script will not be able to
enable the modemmanager openrc service otherwise.

Related: issue 1297
2021-11-12 00:22:52 +01:00
Newbyte
8e3224d1f0
main/postmarketos-ui-phosh: add lollypop to recommends (MR 2417)
This provides a mobile-friendly music player in the default
installation which is something that's currently lacking.

[ci:skip-vercheck]: _pmb_recommends change doesn't need pkgrel bump
2021-08-09 16:02:41 +03:00
Anri Dellal
196ff18b06
main/postmarketos-ui-*: add GPU acceleration option (MR 2078)
Adds pmb:gpu-accel option to Phosh, Plasma Mobile/Bigscreen, Sway,
Glacier and Kodi APKBUILDs to hide the UIs at `pmbootstrap init`
for devices without GPU acceleration support.

Related: pmbootstrap!2043

[ci:skip-build]: already built successfully in CI
[ci:skip-vercheck]
2021-07-06 19:12:27 -07:00
Clayton Craft
ae02ad9190
main/postmarketos-ui-phosh: disable app drawer filtering (MR 2298)
Phosh 0.12.0 introduces filtering when the device is of a mobile type
and the app is not explicitly 'adaptive'. This means a lot of apps that
might otherwise work ok-ish are gone from the list.

This change disables the filtering for now.
2021-07-06 21:30:06 +02:00
Bart Ribbers
454995d879
main/postmarketos-ui-phosh: stop providing mpris-proxy.desktop (MR 2314)
This is now done by Bluez itself
https://git.alpinelinux.org/aports/commit/main/bluez?id=b99445977598b3bb8cc66b3a59a2c5edbbedac26
2021-07-05 14:00:12 +02:00
Newbyte
6d36d27417
main/postmarketos-ui-phosh: don't set GDK_BACKEND=wayland (MR 2235)
This causes issues with some programs, chiefly that gsd-xsetttings
does not start properly. GDK_BACKEND=wayland is only really
necessary to make Firefox run in Wayland mode anyway - other GTK 3/4
apps use it automatically. Firefox will be set to use Wayland via a
following commit.
2021-06-30 23:38:12 -07:00
Newbyte
32e78c7933
main/postmarketos-ui-phosh: remove workaround for starting gsd-xsettings (MR 2235)
This reverts commit d7bcaece8e.

The following commit fixes this in a better manner by not setting
GDK_BACKEND=wayland.
2021-06-30 23:38:12 -07:00
Clayton Craft
dfd882c5fa
postmarketos-ui-*: explicitly depend on pmos-base-ui, dnsmasq (MR 2243)
UIs that depend on networkmanager also have an added dependency on
dnsmasq since this was removed from postmarketos-base

[ci:ignore-count] lots of packages, but no code compilation..
2021-06-23 13:00:00 +02:00
Clayton Craft
a2ce6efcb6
main/postmarketos-ui-phosh: replace nemo with portfolio (MR 2230)
This file manager is made to work on adaptive screens out of the box,
and is really nice to use compared to nemo.
2021-06-11 11:58:30 +02:00
Clayton Craft
08065a3d7c
postmarketos-ui-phosh: remove pipewire subpackage (MR 2054)
The .desktop file provided here is no longer necessary, Alpine aports
has a better version of it now.

fixes #1098
2021-06-09 13:09:10 -07:00
Clayton Craft
d7bcaece8e
postmarketos-ui-phosh: add workaround for starting gsd-xsettings (MR 2233)
This package sets GDK_BACKEND=wayland (in gtk-app-wayland.sh), and some
apps (firefox) still need that set to work. gsd-xsettings, which is
launched explicitly by Phosh 0.11.0+, does not work when this var is set
to wayland.
2021-06-08 23:28:55 +02:00
Bart Ribbers
811d8a9b01
main/postmarketos-phosh: enable networkmanager by default (MR 2174) 2021-05-24 11:39:08 +02:00
Oliver Smith
3da823d081
main/postmarketos-ui-phosh: _pmb_recommends: add font-noto (MR 2134) 2021-04-26 14:32:39 +03:00
Oliver Smith
1a0e054c76
main/postmarketos-ui-phosh: add postmarketos-tweaks (MR 2107)
Make it easy for users to disable animations, switch to dark mode (by
changing the GTK theme), change suspend time and other tweaks.

[ci:skip-vercheck]: _pmb_recommends change doesn't need rebuild
[ci:skip-build]: already built successfully in CI
2021-04-19 00:00:53 +02:00
Bart Ribbers
0a8cb8277f
main/postmarketos-ui-phosh: make Kirigami/QML apps use mobile controls (MR 1932)
Otherwise these applications will behave as desktop applications which
is obviously not desired
2021-04-05 22:21:18 +03:00
JuniorJPDJ
93174b17dc
main/*: use xwayland instead of xorg-server-xwayland (MR 2041) 2021-03-19 15:31:12 +01:00
Oliver Smith
e4820e1ed2
main/postmarketos-ui-phosh: fix pipewire startup (MR 1951)
Override pipewire.desktop with a different X-GNOME-Autostart-Phase, so
Phosh can start it properly.
2021-02-13 08:51:15 +01:00
Bart Ribbers
320ebcd2c8
main/postmarketos-ui-phosh: enable on x86 (MR 1934)
The original issue which caused us to block it has long-since been
resolved

[ci:skip-vercheck] Enabling an architecture, no pkgrel bump needed
2021-02-07 19:27:55 +01:00
Dylan Van Assche
aa77b10c44
main/postmarketos-ui-phosh: add user to feedbackd (MR 1750)
Use _pmb_groups and post-upgrade mechanisms to add the user to the
feedbackd group.

Depends: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/17489
Co-Authored-By: Oliver Smith <ollieparanoid@postmarketos.org>
2021-02-03 00:51:44 +01:00
Oliver Smith
7842ad231b
main/postmarketos-ui-phosh: depend on xdg-desktop-portal-gtk (MR 1844)
Add the dependency to properly support file transfer between sandboxed
applications. Currently they can be used with flatpak (e.g. for quickly
testing out applications, not a recommended way to applications) and long
term we could use this in combination with apparmor for natively packaged
applications.

Notably the KDE version is already getting pulled in by when installing
postmarketos-ui-plasma-*.
2021-01-05 15:51:07 +03:00
Oliver Smith
12e548fe4a
main/postmarketos-ui-phosh: autostart mpris-proxy (MR 1804)
Make bluetooth headset controls work. While at it, order sources
alphabetically.
2020-12-20 13:34:10 +01:00
Oliver Smith
d1bd6eb84d
main/postmarketos-ui-*: fix tinydm-openrc depend (MR 1811)
Let all packages depending on tinydm depend on tinydm-openrc too. This
is needed to make sure that tinydm-openrc is installed, before the
tinydm service is enabled in the UI's post-install scripts.

This was not an issue because tinydm currently depends on tinydm-openrc.
But that's a hack and will be removed when upstreaming tinydm to alpine.

[ci:skip-build]: already built successfully in CI
2020-12-14 23:40:01 -08:00
Bart Ribbers
ef8b6b1114
main/postmarketos-ui-phosh: remove leftover 60-lightdm-autologin.conf 2020-11-13 23:17:57 +01:00
Oliver Smith
b00f718f3f main/postmarketos-ui-phosh: use tinydm instead of lightdm (MR 1659) 2020-11-13 10:47:07 +01:00
Antoine Fontaine
c60dd3e80e
main/postmarketos-ui-{phosh,plasma-mobile}: add iio-sensor-proxy-openrc to deps (MR 1658)
As the post-install use the service, it must be in depends.
Otherwise, the install_if may install it *after* the rc-update
command is run, and fails.
2020-10-28 23:52:37 +03:00
clayton craft
394798dc8a
postmarketos-ui-phosh: add gschema override to show squeekboard (MR 1657)
Squeekboard >= 0.10.0 looks for an a11y setting to determine if it
should show up on the screen. This sets the config setting to 'true' so
that it shows up by default. It can apparently be toggled off in Gnome
Settings, but I haven't found the UI switch to do that yet..
2020-10-28 12:32:37 -07:00
Oliver Smith
757edbd304
main/postmarketos-ui-phosh: add megapixels to _pmb_recommends (MR 1610)
[ci:skip-vercheck]: doesn't need a rebuild
2020-10-20 22:55:04 +02:00
clayton craft
b8b6ec3634
postmarketos-ui-phosh: include emoji font (MR 1632)
This adds emoji support to the squeekboard emoji picker, and to any apps
that might want to display emojis (chatty, firefox, text editor, etc)

Thanks @vurpo for the tip.
2020-10-13 09:47:51 +02:00
Oliver Smith
2420f9a0bf
main/postmarketos-ui-phosh: re-enable autologin (MR 1630)
We have tried out lightdm-mobile-greeter for three weeks, but let's remove
it again from the default install.

The greeter behaves completely different from the Phosh (or any other
UI's) lockscreen, therefore it provides a bad user experience. Not only
the design is different, but it also can't display the same information
as the Phosh lockscreen. You can't accept a call coming in while the
greeter is displayed, and whatever other features will be added to the
lockscreen in the future would not be in the greeter (e.g. making a photo
without logging in, emergency calls without login, ...).

It's clear to me now, that postmarketOS in the default installation
should install one UI in single-user mode, and that UI should use its
lockscreen to display all login screens. The case of having multiple UIs
installed at the same time is used rarely, so instead of optimizing for
it, document how to enable a greeter after the installation in the wiki:
https://wiki.postmarketos.org/wiki/Configure_postmarketOS_for_multiple_UIs_or_users

Besides the strong reasons above to ship with no greeter at all, we had
problems with lightdm-mobile-greeter in particular:
* It did not work with Plasma Mobile
* When HDMI was plugged in, the greeter was not usable (especially
  annoying, because Phosh tends to crash after plugging in HDMI, so it
  would go back to the greeter which then means you need to reboot)

This reverts commit be693339ec.
2020-10-11 18:52:28 +02:00
Clayton Craft
0289b633f9
main/postmarketos-ui-phosh: add eog and Nemo to default apps (MR 1583)
eog is a nice image viewer that works pretty well on a
touchscreen/mobile display.

Nemo is a file manager from the Cinnamon desktop project, which forked
from Nautilus some time ago. It is much more usable than Nautilus on a
touchscreen/mobile display.

Set eog as default app in mimeapps.list, so it even works when hiding
the launcher with postmarketos-hidden-desktop-entries (we'll hide it,
because it doesn't work when opened directly; no image is shown and
opening a file does not work either). The list of associated mimetypes
is taken from here:
https://gitlab.gnome.org/GNOME/eog/-/blob/master/data/org.gnome.eog.desktop.in.in
2020-09-24 10:28:44 +02:00
Martijn Braam
be693339ec
main/postmarketos-ui-phosh: switch greeter to lightdm-mobile-greeter (MR 1382) 2020-09-16 18:09:25 +02:00
Antoine Fontaine
07aa7c7ffb
main/postmarketos-ui-{gnome,phosh}: drop outdated gsettings override (MR 1566)
fixes https://gitlab.com/postmarketOS/pmaports/-/issues/775.
2020-09-14 11:20:25 +02:00
Oliver Smith
fef3af0d75
main/postmarketos-ui-phosh: no scaling for firefox (MR 1492)
With the new mobile-config-firefox, the window width is small enough
that the window does not need to be scaled. This looks better overall,
and avoids scaling glitches.
2020-08-15 18:42:00 +02:00