question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No scratchpad with firejail

See original GitHub issue

Issue description

I have successfully configured a scratchpad for keepassxc and it worked fine for a long time. Now, after installing firejail and opening keepassxc in a sandbox, keepassxc opens in a “normal” window within the stack and not as scratchpad anymore. The firejail profile i use is the one from the default installation in arch (see below).

I don’t know if this is an issue in qtile, but i wonder which setting in firejail causes this behaviour?

Qtile version

0.18.1.dev0+g8e7ecc0a.d20210719

Stack traces

Configuration

[...]
         Key([alt], "k", lazy.spawn("brightnessctl set 10%+")),
         Key([mod, "control"], "Return", lazy.group['scratchpad'].dropdown_toggle('terminal')),
         Key([mod, "control"], "n", lazy.group['scratchpad'].dropdown_toggle('nextcloud')),
         Key([mod, "control"], "p", lazy.group['scratchpad'].dropdown_toggle('keepassxc')),
]

workspaces = [
    {"name": "var", "key": "1"},
    {"name": "www", "key": "2", "matches": [Match(wm_class='firefox'), Match(wm_class='LibreWolf'), Match(wm_class='qutebrowser'), Match(wm_class='Tor Browser'), Match(role='browser'), Match(wm_class='Firefox'), Match(wm_class='brave-browser')]},
    {"name": "sys", "key": "3", "matches": [Match(wm_class='geany'), Match(wm_class='vim')]},
    {"name": "dev", "key": "4", "matches": [Match(wm_class='jetbrains-pycharm-ce')]},
    {"name": "vrt", "key": "5", "matches": [Match(wm_class='virt-manager'),]},
    {"name": "ssh", "key": "6", "matches": [Match(title='ssh')]},
    {"name": "doc", "key": "7", "matches": [Match(wm_class='libreoffice'), Match(wm_class='nextcloud')]},
    {"name": "mus", "key": "8"},
    {"name": "vid", "key": "9", "matches": [Match(wm_class='vlc'), Match(wm_class='mpv'), Match(wm_class='FreeTube'), Match(wm_class='Kodi')]},
]

# define scratchpads
groups = [
    ScratchPad("scratchpad", [
        DropDown("terminal", "alacritty --hold -e zsh", opacity=0.98, x=0.15, y=0.05, width=0.7, height=0.7, on_focus_lost_hide=True),
        DropDown("nextcloud", "nextcloud", opacity=0.98, x=0.15, y=0.05, width=0.7, height=0.7, on_focus_lost_hide=True),
        DropDown("keepassxc", "keepassxc", x=0.2, y=0.25, width=0.5, height=0.6, opacity=1, on_focus_lost_hide=True)]),
]

# add workspaces
for workspace in workspaces:
    matches = workspace["matches"] if "matches" in workspace else None
    groups.append(Group(workspace["name"], matches=matches, layout="monadtall"))
    keys.append(Key([mod], workspace["key"], lazy.group[workspace["name"]].toscreen()))
    keys.append(Key([mod, "shift"], workspace["key"], lazy.window.togroup(workspace["name"])))



[...]

keepassx.profile.txt

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lock-3commented, Oct 18, 2021

Yes, i use x11. It worked after i reinstalled qtile from repository and added the wm_class rule in my config as you suggested. Thanks for your help! I close the issue.

0reactions
senthilbaboocommented, Oct 18, 2021

Glad, that feature helped someone. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scratchpad broken · Issue #2545 · qtile/qtile - GitHub
Scratch that*, I misread the issue. It works on the first instance of pcmanfm-qt, but not on subsequent calls. *pun intended ...
Read more >
Opinions on flatpaks + flatseal vs repo apps + firejail? - Reddit
Hi all. Lately I've been looking a bit at sandboxing or otherwise restricting apps' behavior. What are your opinions on rpms + firejail...
Read more >
Firejail Usage - WordPress.com
Welcome to Firejail, a SUID security sandbox based on Linux namespaces and seccomp-bpf. We are a volunteer weekend project and our target is...
Read more >
Conky Disappeared Upon Reboot - Manjaro Linux Forum
inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Parent pid 1934, child pid 1935 Warning: /sbin directory link was not ...
Read more >
Garuda Sway! - #142 by OdiousImp
Please Note: I did the no no and installed it into VirtualBox. ... thunar, catfish, libreoffice package, firejail, geany and a few others....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found