Commit Graph

75 Commits

Author SHA1 Message Date
Julian Winkler
495dc7612d main.c: call Java System.exit() on termination 2025-10-26 20:32:04 +01:00
Julian Winkler
2288f2bce9 main.c: remove construct_classpath logging 2025-10-08 16:06:53 +02:00
Mis012
ebd16f01dc main-executable: extract native libs before instantiating the Application class 2025-08-03 18:53:23 +02:00
Julian Winkler
53def20d4d main.c: run update-desktop-database on --install
Running update-desktop-database is required to update ~/.local/share/applications/mimeinfo.cache.
2025-07-28 23:27:47 +02:00
Julian Winkler
7366475172 main.c: support URI opening over DBus 2025-07-28 22:27:50 +02:00
Julian Winkler
b7843665ef handle drag-and-drop events as ACTION_SEND Intents 2025-07-14 12:25:04 +02:00
Julian Winkler
0064677755 split handle_cache out of util.c 2025-07-08 23:19:17 +02:00
Julian Winkler
4ec150c802 separate Intent serialization and action handling out of the NotificationManager
This way, the mechanism can in the future also be used to send Intents
from one app to another.
2025-07-08 23:07:42 +02:00
Julian Winkler
3708cc990e NotificationManager: use GIO instead of libportal
GIO's notification implementation makes the code more readable and has
the advantage of supporting multiple notification specifications.

By default we will now use freedesktop notifications when running
without `.desktop` file and XDG-portal notifications when running
with `.desktop` file.

To prevent dynamic notification updates from arriving in wrong order at
the desktop environment, we need to manually queue them up and make sure
that there is at least 200ms delay between updates.
2025-07-07 22:38:10 +02:00
Mis012
2a0c6cd455 main-executable: handle drawable-based app icons by rendering them into SVG 2025-06-21 01:23:09 +02:00
Mis012
272c554262 register path overrides with libc_bio, install fonts.xml 2025-04-11 22:22:54 +02:00
Julian Winkler
d6f50e160c handle trailing colons when parsing gtk-decoration-layout
postmarketOS Phosh has the default gtk-decoration-layout set to "menu:".
We don't want window decorations there by default.
2024-12-30 09:47:14 +01:00
Mis012
df5390db5e main-executable: don't crash on NULL app_icon_path 2024-12-20 00:02:18 +01:00
Mis012
d5bc4ea9a6 implement instrumentation 2024-11-30 18:57:03 +01:00
Daniel Panero
be93b4c396 JavaWidget: add css classes and default_stylesheet.css 2024-11-26 16:33:38 +01:00
Daniel Panero
5f6943fd81 Add backbutton 2024-11-17 23:37:10 +00:00
Julian Winkler
8734a7ef2b Set Configuration.screenLayout depending on monitor geometry
With this configuration, NewPipe enables tablet mode on larger screens.
2024-10-31 20:34:26 +01:00
Julian Winkler
0bec10bb26 disable decoration on mobile compositors by default
On mobile compositors like Phosh, the title bar will have no
buttons and is useless. Therefore it can be disabled by default.

This behaviour can still be overwritten using the
ATL_DISABLE_WINDOW_DECORATIONS environment variable.
2024-10-31 16:49:26 +01:00
Julian Winkler
6162868bd1 main-executable: handle empty string being passed to --uri
The XDG-portal escapes the strings when installing a .desktop file. This
causes --uri %u to be replaced with --uri '%u', which causes an empty
string to be passed when no URI is specified.
2024-10-31 12:57:20 +01:00
Julian Winkler
a8ef5a533a implement passing a URI to open inside the application
Supported URI schemes will also be added to the .desktop file for --install

The URI is passed as named parameter --uri. This allows us to use unnamed parameters
for split APK apps in the future
2024-10-07 11:54:23 +02:00
Mis012
6560512b47 improve --help output and code style in main.c, use ARRAY_SIZE consistently 2024-09-15 00:42:55 +02:00
Mis012
4cb9cea3ba native_window: remove UGLY_HACK_FOR_VR, it's not needed because we now emulate pbuffers on wayland; also, using Gtk's X11 backend is always an option 2024-09-13 20:36:44 +02:00
Mis012
e761bb6a6d api-impl: implement WebView using webkitgtk 2024-09-13 20:29:56 +02:00
Mis012
92e2c06347 make sure the apk path is reliably set in the PackageInfo 2024-06-19 22:35:50 +02:00
Mis012
6832f5d16e main-executable: use C.UTF_8 locale, not en_US 2024-06-19 20:50:35 +02:00