Comments (7)
I was able to make it work using some additional flags and a separate profile:
command = "firefox --no-remote -P your-separate-profile-name --name your-class-name your-default-url"
It's important to use a different profile, otherwise firefox will refuse to open a new instance. Also, --class
seems to have been deprecated in favor of --name
, so keep that in mind. Using these options, I was able to make it work.
Optionally you can go into your profile and change the CSS to hide the tab and url bars, to get a pseudo full screen window. I'm using this to display some documents for work, it's really nice this way :)
from pyprland.
Sorry, I'm not getting the issue.
I see in the screenshot the window is appearing. Do you mean as soon as you use "class" this will not work anymore and you get the error you provided ?
from pyprland.
shouldn't the window appear floating?
from pyprland.
It should yes, but you also mention:
Failed spawning nixpkgs-search as proc 608846 "firefox --new-window https://search.nixos.org/packages": The command terminated sucessfully, is it already running? Failed to show nixpkgs-search, aborting.
Which means it didn't work for some reason (firefox is already launched ?)...
If I try your configuration, I see this window config:
"floating": false,
"monitor": 1,
"class": "brave-browser",
"title": "opening firefox - open a normal hyprland window · Issue #35 · hyprland-community/pyprland – Brave",
"initialClass": "brave-browser",
"initialTitle": "Nouvel onglet – Brave",
"pid": 1969,
"xwayland": false,
"pinned": false,
"fullscreen": false,
"fullscreenMode": 0,
"fakeFullscreen": false,
"grouped": [],
"swallowing": "0x0"
},
So the class doesn't work as you expect, that's why pypr isn't able to set the floating state. So that's not a bug, the class of the window must match the "class" attribute in pyprland configuration .
I'm sure it will work as you expect once you figured how to set firefox's class, I'm not using it so I can't help for that.
from pyprland.
Thanks! though i thought without the class it should go with the pid
but that didn't work either so got confused on the usage. Any browser recommendations that will work? i'll try to dig to the class of firefox and reply if i find it.
from pyprland.
Welcome! I don't have much experience using webapps as scratchpads but you may be interested in #31 . On google I found some bugs for chrome regarding "class" handling, I can imagine there are similar issues with firefox.
If you get it to work feel free to share, I'll add it to some example in the wiki.
from pyprland.
thank you @CaptaiNiveau i'll give it a try later this week
from pyprland.
Related Issues (20)
- Toggle terminal doesnt work in opensuse HOT 7
- [BUG] Excludes = "*" is not working in 2.2.17 HOT 1
- [BUG] OSError: AF_UNIX path too long HOT 11
- [BUG] No error output if 'swaybg' isn't found in path
- [FEAT] Allow for different wallpapers on different monitors HOT 3
- [BUG] expose throws an error HOT 2
- [FEAT] Allow wildcards in 'include' config option HOT 6
- [BUG] Configuration not read from `included` files HOT 1
- [FEAT] Implement Smooth Animation for Magnify HOT 2
- [FEAT] Improve error report when config file failed to be parsed HOT 2
- [FEAT] Multiple windows support for scratchpads HOT 57
- [BUG] Error loading plugin pyprland -> JSONDecodeError: Expecting value HOT 12
- [BUG] Fail to parse hyprctl version on Hyprland built from git HOT 1
- [BUG] [NIX] Crash on startup with 2.2.10 HOT 15
- [BUG] pyprland web apps HOT 17
- [BUG] pyprland getting syntax errors and doesn't start HOT 5
- [BUG] Invalid json data at pypr startup HOT 6
- [BUG/cosmetic] Fail to parse hyprctl version HOT 3
- [BUG] Scratchpads and file managers (Nemo, Nautilus) HOT 15
- [FEAT] Add `Anyrun` as `_menu` engine HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyprland.