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

Albert not opening files #1235

Closed
nsirolli opened this issue May 16, 2023 · 9 comments
Closed

Albert not opening files #1235

nsirolli opened this issue May 16, 2023 · 9 comments
Assignees

Comments

@nsirolli
Copy link

Description

Albert is not opening any of my files: when I open the launcher, write a filename and hit Enter, nothing happens.

My files do get opened when using xdg-open.

Applications do launch properly.

Expected behavior

Open files using the files plugin.

Steps to reproduce

Open the launcher, write a filename and hit Enter.

Source

arch AUR
0.20.13-1

Using sway 1.8.1

Debug output

An example; the same happens with every file / folder.


17:39:50 [debg:albert] Received message: show
17:39:50 [debg:albert] TIME:      0 µs ['globalsearch':'']
17:39:50 [debg:widgetsboxmodel] eDP-1 Chimei Innolux Corporation 0x14E5 2 QRect(0,0 1371x771)
17:39:50 [debg:widgetsboxmodel] win_width 664 newX 353 newY 154
17:39:51 [debg:albert] TIME:     95 µs ['calculator_qalculate':'n']
17:39:51 [debg:albert] TIME:    202 µs ['applications':'n']
17:39:51 [debg:albert] TIME:    156 µs ['system':'n']
17:39:51 [debg:albert] TIME:    165 µs ['albert':'n']
17:39:51 [debg:albert] TIME:   5650 µs ['files':'n']
17:39:51 [debg:albert] TIME:   6186 µs ['globalsearch':'n']
17:39:51 [debg:albert] TIME:    136 µs ['applications':'ni']
17:39:51 [debg:albert] TIME:    163 µs ['system':'ni']
17:39:51 [debg:albert] TIME:    163 µs ['albert':'ni']
17:39:51 [debg:albert] TIME:     74 µs ['calculator_qalculate':'ni']
17:39:51 [debg:albert] TIME:    712 µs ['files':'ni']
17:39:51 [debg:albert] TIME:   1134 µs ['globalsearch':'ni']
17:39:51 [debg:albert] TIME:     78 µs ['calculator_qalculate':'nic']
17:39:51 [debg:albert] TIME:    137 µs ['system':'nic']
17:39:51 [debg:albert] TIME:    128 µs ['applications':'nic']
17:39:51 [debg:albert] TIME:    149 µs ['albert':'nic']
17:39:51 [debg:albert] TIME:    596 µs ['files':'nic']
17:39:51 [debg:albert] TIME:    836 µs ['globalsearch':'nic']
17:39:51 [debg:albert] TIME:    167 µs ['system':'nico']
17:39:51 [debg:albert] TIME:    146 µs ['applications':'nico']
17:39:51 [debg:albert] TIME:     77 µs ['calculator_qalculate':'nico']
17:39:51 [debg:albert] TIME:    164 µs ['albert':'nico']
17:39:51 [debg:albert] TIME:    613 µs ['files':'nico']
17:39:51 [debg:albert] TIME:    927 µs ['globalsearch':'nico']
17:39:54 [debg:albert] Opening URL 'file:///home/nico/weaver-bar/notes/nico.xopp'
17:39:54 [debg:albert] UsageHistory::addActivation  11324 µs
17:39:54 [debg:albert] Query deleted. [#21 'nic']
17:39:54 [debg:albert] Query deleted. [#20 'ni']
17:39:54 [debg:albert] Query deleted. [#19 'n']
17:39:54 [debg:albert] Query deleted. [#18 '']
17:39:54 [debg:albert] Query deleted. [#17 '']
17:39:54 [debg:albert] UsageHistory::mruScores   1057 µs

@ManuelSchneid3r
Copy link
Member

Plase post the full log. Whats the platform name? Maybe related to #1231

@nsirolli
Copy link
Author

nsirolli commented May 17, 2023

The platform is Wayland. Here's the full log:

nico@pilar:~> export QT_QPA_PLATFORMTHEME=qt6ct; albert -d &
[1] 242372
nico@pilar:~>         Albert version: 0.20.13
            Build date: Apr 24 2023 19:34:30
            Qt version: 6.5.0
             Build ABI: x86_64-little_endian-lp64
  Arch (build/current): x86_64/x86_64
 Kernel (type/version): linux/6.3.1-arch2-1
                    OS: Arch Linux
     OS (type/version): arch/unknown
 $QT_QPA_PLATFORMTHEME: qt6ct
         Platform name: wayland
                  Font: DejaVu Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Book
       Binary location: /usr/bin/albert
                  $PWD: /home/nico
                $SHELL: /bin/bash
                 $LANG: es_AR.UTF-8
              Language: Spanish
                Locale: es_AR
     $XDG_SESSION_TYPE: wayland
  $XDG_CURRENT_DESKTOP:
      $DESKTOP_SESSION:
  $XDG_SESSION_DESKTOP:
            Icon theme: breeze
05:46:00 [debg:albert] Creating crash indicator file
05:46:00 [debg:albert] Checking for a running instance…
05:46:00 [debg:albert] Creating local socket /home/nico/.cache/albert_socket
05:46:00 [debg:albert] Initializing database…
05:46:00 [debg:albert] UsageHistory::mruScores    429 µs
05:46:00 [debg:albert] Searching native plugins in /usr/lib/albert
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libwebsearch.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libsystem.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libsnippets.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libssh.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libapplications.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libcalculator_qalculate.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libpython.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/liburlhandler.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libterminal.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libchromium.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libwidgetsboxmodel.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libcalculator_muparser.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libdatetime.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libhash.so
05:46:00 [debg:albert] Found valid native plugin /usr/lib/albert/libfiles.so
05:46:00 [debg:albert] Loading frontend plugin…
05:46:00 [info:albert] Loading plugin system
05:46:00 [debg:albert] [0ms] Successfully loaded 'system'
05:46:00 [info:albert] Loading plugin applications
05:46:00 [debg:albert] [0ms] Successfully loaded 'applications'
05:46:00 [info:albert] Loading plugin calculator_qalculate
05:46:00 [info:applications] Desktop file skipped: '/usr/share/applications/spotify.desktop' overwritten in '/home/nico/.local/share/applications/spotify.desktop'
05:46:00 [debg:applications] Indexing desktop file: Alacritty.desktop
05:46:00 [debg:applications] Indexing desktop file: Singular-manual.desktop
05:46:00 [debg:applications] Indexing desktop file: Singular.desktop
05:46:00 [debg:applications] Indexing desktop file: albert.desktop
05:46:00 [debg:applications] Indexing desktop file: assistant.desktop
05:46:00 [debg:applications] Indexing desktop file: avahi-discover.desktop
05:46:00 [debg:applications] Indexing desktop file: bssh.desktop
05:46:00 [debg:applications] Indexing desktop file: bvnc.desktop
05:46:00 [debg:applications] Indexing desktop file: cmake-gui.desktop
05:46:00 [debg:applications] Indexing desktop file: cmst.desktop
05:46:00 [debg:applications] Indexing desktop file: com.github.xournalpp.xournalpp.desktop
05:46:00 [debg:applications] Indexing desktop file: designer.desktop
05:46:00 [debg:applications] Indexing desktop file: discord-881480706545573918.desktop
05:46:00 [debg:applications] Indexing desktop file: feh.desktop
05:46:00 [debg:applications] Indexing desktop file: fluid.desktop
05:46:00 [debg:applications] Indexing desktop file: geoclue-demo-agent.desktop
05:46:00 [debg:applications] Indexing desktop file: geoclue-where-am-i.desktop
05:46:00 [debg:applications] Indexing desktop file: google-chrome.desktop
05:46:00 [debg:applications] Indexing desktop file: harmonoid.desktop
05:46:00 [debg:applications] Indexing desktop file: htop.desktop
05:46:00 [debg:applications] Indexing desktop file: i3.desktop
05:46:00 [debg:applications] Indexing desktop file: ipython.desktop
05:46:00 [debg:applications] Indexing desktop file: linguist.desktop
05:46:00 [debg:applications] Indexing desktop file: lstopo.desktop
05:46:00 [debg:applications] Indexing desktop file: megasync.desktop
05:46:00 [debg:applications] Indexing desktop file: mpv.desktop
05:46:00 [debg:applications] Indexing desktop file: net.sourceforge.maxima.xmaxima.desktop
05:46:00 [debg:applications] Indexing desktop file: nnn.desktop
05:46:00 [debg:applications] Indexing desktop file: nsxiv.desktop
05:46:00 [debg:applications] Indexing desktop file: nvim.desktop
05:46:01 [debg:applications] Indexing desktop file: org.freedesktop.Xwayland.desktop
05:46:01 [debg:applications] Indexing desktop file: org.lite_xl.lite_xl.desktop
05:46:01 [debg:applications] Indexing desktop file: org.pwmt.zathura-djvu.desktop
05:46:01 [debg:applications] Indexing desktop file: org.pwmt.zathura-pdf-poppler.desktop
05:46:01 [debg:applications] Indexing desktop file: org.pwmt.zathura.desktop
05:46:01 [debg:applications] Indexing desktop file: org.qbittorrent.qBittorrent.desktop
05:46:01 [debg:applications] Indexing desktop file: pavucontrol-qt.desktop
05:46:01 [debg:applications] Indexing desktop file: qdbusviewer.desktop
05:46:01 [debg:applications] Indexing desktop file: qt6ct.desktop
05:46:01 [debg:applications] Indexing desktop file: qv4l2.desktop
05:46:01 [debg:applications] Indexing desktop file: qvidcap.desktop
05:46:01 [debg:applications] Indexing desktop file: r.desktop
05:46:01 [debg:applications] Indexing desktop file: rofi-theme-selector.desktop
05:46:01 [debg:applications] Indexing desktop file: rofi.desktop
05:46:01 [debg:applications] Indexing desktop file: spotify.desktop
05:46:01 [debg:applications] Indexing desktop file: swayimg.desktop
05:46:01 [debg:applications] Indexing desktop file: xcas.desktop
05:46:01 [debg:applications] Indexing desktop file: xdvi.desktop
05:46:01 [debg:applications] Indexing desktop file: yad-icon-browser.desktop
05:46:01 [debg:applications] Indexing desktop file: yad-settings.desktop
05:46:01 [debg:applications] Indexing desktop file: zellij.desktop
05:46:01 [debg:albert] [40ms] Successfully loaded 'calculator_qalculate'
05:46:01 [info:albert] Loading plugin terminal
05:46:01 [debg:albert] [0ms] Successfully loaded 'terminal'
05:46:01 [info:albert] Loading plugin files
05:46:01 [info:terminal] Indexing $PATH.
05:46:01 [info:files] Indexing /home/nico
05:46:01 [debg:terminal] Finished indexing $PATH.
05:46:01 [debg:albert] [116ms] Successfully loaded 'files'
05:46:01 [debg:albert] TIME:      0 µs ['globalsearch':'']
05:46:02 [debg:albert] Received message: show
05:46:02 [debg:widgetsboxmodel] moveEvent QPoint(0,0) > QPoint(0,0)
05:46:02 [debg:albert] TIME:      0 µs ['globalsearch':'']
05:46:02 [debg:widgetsboxmodel] eDP-1 Chimei Innolux Corporation 0x14E5 2 QRect(0,0 1371x771)
05:46:02 [debg:widgetsboxmodel] win_width 664 newX 353 newY 154
05:46:02 [debg:widgetsboxmodel] moveEvent QPoint(0,0) > QPoint(353,154)
05:46:03 [debg:albert] TIME:     35 µs ['albert':'n']
05:46:03 [debg:albert] TIME:     84 µs ['system':'n']
05:46:03 [debg:albert] TIME:     81 µs ['calculator_qalculate':'n']
05:46:03 [debg:albert] TIME:    117 µs ['applications':'n']
05:46:03 [debg:albert] TIME:   2708 µs ['files':'n']
05:46:03 [debg:albert] TIME:   3540 µs ['globalsearch':'n']
05:46:04 [debg:albert] TIME:    107 µs ['applications':'ni']
05:46:04 [debg:albert] TIME:    111 µs ['system':'ni']
05:46:04 [debg:albert] TIME:    111 µs ['albert':'ni']
05:46:04 [debg:albert] TIME:     80 µs ['calculator_qalculate':'ni']
05:46:04 [debg:albert] TIME:    338 µs ['files':'ni']
05:46:04 [debg:albert] TIME:    606 µs ['globalsearch':'ni']
05:46:04 [debg:albert] TIME:    157 µs ['system':'nic']
05:46:04 [debg:albert] TIME:    172 µs ['albert':'nic']
05:46:04 [debg:albert] TIME:    191 µs ['applications':'nic']
05:46:04 [debg:albert] TIME:     85 µs ['calculator_qalculate':'nic']
05:46:04 [debg:albert] TIME:    831 µs ['files':'nic']
05:46:04 [debg:albert] TIME:   1215 µs ['globalsearch':'nic']
05:46:04 [debg:albert] TIME:     83 µs ['calculator_qalculate':'nico']
05:46:04 [debg:albert] TIME:    168 µs ['system':'nico']
05:46:04 [debg:albert] TIME:    152 µs ['applications':'nico']
05:46:04 [debg:albert] TIME:    182 µs ['albert':'nico']
05:46:04 [debg:albert] TIME:    668 µs ['files':'nico']
05:46:04 [debg:albert] TIME:   1031 µs ['globalsearch':'nico']
05:46:07 [debg:albert] Opening URL 'file:///home/nico/weaver-bar/notes/nico.xopp'
05:46:07 [debg:albert] UsageHistory::addActivation  11267 µs
05:46:07 [debg:albert] Query deleted. [#4 'nic']
05:46:07 [debg:albert] Query deleted. [#3 'ni']
05:46:07 [debg:albert] Query deleted. [#2 'n']
05:46:07 [debg:albert] Query deleted. [#1 '']
05:46:07 [debg:albert] Query deleted. [#0 '']
05:46:07 [debg:albert] UsageHistory::mruScores   1041 µs

@ManuelSchneid3r
Copy link
Member

Well wayland sucks, you have to run it using xcb platform. See the deskop file on how to run it and/or #958

@ManuelSchneid3r ManuelSchneid3r closed this as not planned Won't fix, can't repro, duplicate, stale May 18, 2023
@ManuelSchneid3r
Copy link
Member

Have you tried it with QT_QPA_PLATFORM=xcb?

@nsirolli
Copy link
Author

nsirolli commented May 18, 2023 via email

@ManuelSchneid3r
Copy link
Member

ManuelSchneid3r commented May 18, 2023 via email

@nsirolli
Copy link
Author

nsirolli commented May 20, 2023 via email

@ManuelSchneid3r
Copy link
Member

export QT_QPA_PLATFORMTHEME=xcb; albert -d

use QT_QPA_PLATFORM

@nsirolli
Copy link
Author

nsirolli commented May 20, 2023 via email

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

No branches or pull requests

2 participants