Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open flatpak applications #177

Open
SafariKnight opened this issue Jul 1, 2024 · 1 comment
Open

Unable to open flatpak applications #177

SafariKnight opened this issue Jul 1, 2024 · 1 comment

Comments

@SafariKnight
Copy link

Trying to open flatpak applications on my system (tested on Hyprland and KDE Plasma) results in absolutely nothing happening.

Doing it from the command line results in this

$ tofi-drun
[    real,      cpu,   maxRSS]
[0.000000, 0.005147,  6272 KB][DEBUG]: This is tofi.
[0.000104, 0.005250,  6784 KB][DEBUG]: Loading config file /home/username/.config/tofi/config.
[0.000133, 0.005278,  6784 KB][DEBUG]: Config done.
[0.000150, 0.005295,  6784 KB][DEBUG]: Connecting to Wayland display.
[0.000199, 0.005344,  6784 KB][DEBUG]: Creating xkb context.
[0.000269, 0.005413,  6912 KB][DEBUG]: First roundtrip start.
[0.000381, 0.005456,  6912 KB][DEBUG]:     Bound to seat 1.
[0.000392, 0.005467,  6912 KB][DEBUG]:     Bound to data device manager  2.
[0.000398, 0.005473,  6912 KB][DEBUG]:     Bound to compositor 3.
[0.000405, 0.005480,  6912 KB][DEBUG]:     Bound to shm 5.
[0.000412, 0.005487,  6912 KB][DEBUG]:     Bound to wp_viewporter 6.
[0.000419, 0.005494,  6912 KB][DEBUG]:     Bound to wp_fractional_scale_manager_v1 8.
[0.000432, 0.005507,  6912 KB][DEBUG]:     Bound to zwlr_layer_shell_v1 33.
[0.000443, 0.005517,  6912 KB][DEBUG]:     Bound to output 46.
[0.000450, 0.005524,  6912 KB][DEBUG]: First roundtrip done.
[0.000454, 0.005529,  6912 KB][DEBUG]: Second roundtrip start.
[0.000569, 0.005556,  6912 KB][DEBUG]:     Got keyboard from seat.
[0.000579, 0.005567,  6912 KB][DEBUG]:     Got pointer from seat.
[0.000588, 0.005576,  6912 KB][DEBUG]:     Output configuration done.
[0.000594, 0.005582,  6912 KB][DEBUG]: Second roundtrip done.
[0.000599, 0.005587,  6912 KB][DEBUG]: Determining output.
[0.000610, 0.005597,  6912 KB][DEBUG]:     First dummy roundtrip start.
[0.000772, 0.005635,  6912 KB][DEBUG]:         Configuring keyboard.
[0.002582, 0.007439,  7680 KB][DEBUG]:         Keyboard configured.
[0.002593, 0.007450,  7680 KB][DEBUG]:         Key repeat every 16 ms after 400 ms.
[0.002605, 0.007462,  7680 KB][DEBUG]:     First dummy roundtrip done.
[0.002612, 0.007469,  7680 KB][DEBUG]:     Initialising dummy surface.
[0.002643, 0.007500,  7680 KB][DEBUG]:         Created shm file with size 0 KiB.
[0.002652, 0.007509,  7680 KB][DEBUG]:     Dummy surface initialised.
[0.002658, 0.007517,  7680 KB][DEBUG]:     Second dummy roundtrip start.
[0.002895, 0.007548,  7680 KB][DEBUG]:     Second dummy roundtrip done.
[0.002912, 0.007565,  7680 KB][DEBUG]: Selected output HDMI-A-1.
[0.002921, 0.007573,  7680 KB][DEBUG]: Generating desktop app list.
[0.002929, 0.007581,  7680 KB][DEBUG]:     Retrieving cache location.
[0.002948, 0.007600,  7680 KB][DEBUG]:     Retrieving application dirs.
[0.003293, 0.007753,  7808 KB][DEBUG]:     Cache up to date, loading.
[0.003404, 0.007863,  7808 KB][DEBUG]:     Moving already known apps to the front.
[0.003418, 0.007876,  7808 KB][DEBUG]: App list generated.
[0.003423, 0.007882,  7808 KB][DEBUG]: Creating main window surface.
[0.003434, 0.007892,  7808 KB][DEBUG]: Third roundtrip start.
[0.004697, 0.007935,  7808 KB][DEBUG]:     Layer surface configure, 1920 x 32.
[0.004722, 0.007959,  7808 KB][DEBUG]: Third roundtrip done.
[0.004729, 0.007966,  7808 KB][DEBUG]: Initialising window surface.
[0.004783, 0.008020,  7808 KB][DEBUG]:     Created shm file with size 480 KiB.
[0.004792, 0.008029,  7808 KB][DEBUG]: Window surface initialised.
[0.004798, 0.008035,  7808 KB][DEBUG]: Initialising renderer.
[0.004804, 0.008041,  7808 KB][DEBUG]:     Creating 1920 x 32 Cairo surface with scale factor 1.000.
[0.004876, 0.008112,  8192 KB][DEBUG]:     Drawing window.
[0.005160, 0.008395,  8704 KB][DEBUG]:     Creating FreeType library.
[0.005224, 0.008458,  8960 KB][DEBUG]:     Loading FreeType font.
[0.005327, 0.008560,  9344 KB][DEBUG]:     Creating Harfbuzz font.
[0.005440, 0.008672,  9856 KB][DEBUG]:     Creating Harfbuzz buffer.
[0.005450, 0.008682,  9856 KB][DEBUG]:     Creating Cairo font.
[0.005482, 0.008714,  9984 KB][DEBUG]:     Initial text render.
[0.008548, 0.011781, 11264 KB][DEBUG]:     Drew 10 results.
[0.008571, 0.011804, 11264 KB][DEBUG]: Renderer initialised.
[0.010715, 0.011849, 11264 KB][DEBUG]: Surface entered output.
[0.010735, 0.011868, 11264 KB][DEBUG]: Initialising second buffer.
[0.010821, 0.011953, 11520 KB][DEBUG]: Second buffer initialised.
[10.280762, 0.012212, 11648 KB][DEBUG]: Start rendering entry.
[10.282270, 0.013717, 11648 KB][DEBUG]: Drew 10 results.
[10.282279, 0.013725, 11648 KB][DEBUG]: Finish rendering entry.
[10.520926, 0.014017, 11648 KB][DEBUG]: Start rendering entry.
[10.521951, 0.015041, 11648 KB][DEBUG]: Drew 10 results.
[10.521960, 0.015049, 11648 KB][DEBUG]: Finish rendering entry.
[10.632821, 0.015304, 11648 KB][DEBUG]: Start rendering entry.
[10.633503, 0.015981, 11648 KB][DEBUG]: Drew 8 results.
[10.633518, 0.015997, 11648 KB][DEBUG]: Finish rendering entry.
[10.736813, 0.016254, 11648 KB][DEBUG]: Start rendering entry.
[10.736975, 0.016415, 11648 KB][DEBUG]: Drew 1 results.
[10.736985, 0.016426, 11648 KB][DEBUG]: Finish rendering entry.
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=net.davidotek.pupgui2 net.davidotek.pupgui2
[11.297178, 0.016975, 11776 KB][DEBUG]: Window closed, performing cleanup.
[11.298613, 0.017209, 11776 KB][DEBUG]: Finished, exiting.

(I've tested this with multiple apps, same result)

@bigrand
Copy link

bigrand commented Dec 22, 2024

This happens to me too.

I use Sway, so passing it to swaymsg fixes it:
tofi-drun | xargs swaymsg exec --

If I'm not wrong, the solution for Hyprland would be something like this:
tofi-drun | xargs hyprctl dispatch -- exec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants