Giter Site home page Giter Site logo

Comments (7)

CaptaiNiveau avatar CaptaiNiveau commented on May 20, 2024 1

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.

fdev31 avatar fdev31 commented on May 20, 2024

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.

realsnick avatar realsnick commented on May 20, 2024

shouldn't the window appear floating?

from pyprland.

fdev31 avatar fdev31 commented on May 20, 2024

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.

realsnick avatar realsnick commented on May 20, 2024

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.

fdev31 avatar fdev31 commented on May 20, 2024

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.

realsnick avatar realsnick commented on May 20, 2024

thank you @CaptaiNiveau i'll give it a try later this week

from pyprland.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.