Comments (14)
The path that can be relied on in this case is /etc/profiles/per-user/USERNAME/bin/floorp
Not true. There are various places a profile path can be built from in NixOS. For example /etc/profiles
does not even exist on my NixOS system.
The "proper" fix is to not to make any assumptions about paths and rely on $PATH
instead.
from floorp.
@jficz If you are using the latest version of Floorp desktop entries should be created automatically when you install a PWA. It's stored in the ~/.local/share/applications
directory
from floorp.
This seems like an easy fix. Just to clarify, the command used to run Floorp from the terminal is still floorp
right? Or is it different on NixOS?
from floorp.
This seems like an easy fix. Just to clarify, the command used to run Floorp from the terminal is still
floorp
right? Or is it different on NixOS?
Yep, the command without the path still is floorp
.
from floorp.
The path that can be relied on in this case is /etc/profiles/per-user/USERNAME/bin/floorp
Not true. There are various places a profile path can be built from in NixOS. For example
/etc/profiles
does not even exist on my NixOS system.The "proper" fix is to not to make any assumptions about paths and rely on
$PATH
instead.
Ok thank you I didnt know that I was only using nix for about 2 months now
from floorp.
@VictorGamerLOL @jficz Hey guys, so I looked into this issue. Could you open the Browser Console in Floorp and run the following command and see if it gives the right path to the Floorp binary?
Services.dirsvc.get("XREExeF",Ci.nsIFile).path
from floorp.
That's one weird looking command :)
v11.13.3 nixos - 1.0
edit: disregard previous picture - wrong console
This is the command output (in my case):
"/nix/store/bbkrr3fr5mwajv4kc5v3whi59qjabndy-floorp-11.13.3/lib/floorp/floorp"
from floorp.
@TheChilledBuffalo not sure if you're familiar with NixOS - in case you are not, this is how paths to applications (or, "packages") look like in Nix (OS).
Generally speaking, this path (or rather the weird hash after store/
part) changes with each package update. Technically it is a little more complicated but the details are not important in this case. The takeaway is you really can't know in advance what the path will be exactly.
from floorp.
The path changes with each update? Wow ok... Then there's really no way this issue can be fixed then.... Unless you reinstall all your PWAs after each update, which isn't really practical...
from floorp.
I have exactly zero XP with PWAs, I just stumbled upon this issue accidentally because it mentioned NixOS :)
I would like to do some tests tho, @VictorGamerLOL can you pls elaborate on how did you create the desktop shortcut? I can't find a way to do it...
from floorp.
@TheChilledBuffalo so I see that the .deskop file is created with hardcoded path for Exec:
...
Exec=/usr/bin/floorp --profile .....
...
Which means the code that generates the .desktop file code probably has this path hardcoded or somehow (wrongly) inferred from the running platform or something like that. Otherwise I would assume it would use the actual path of the current running binary, which, on Nix(OS) is /nix/store/<hash>-floorp-<version>/lib/floorp/floorp
(as returned by the function you suggested to try) or maybe the the path the binary was executed from (on NixOS that is usually a symlink in various places, depending on how the environment is built).
In such case I think it shouldn't be such a big issue to change that particular part of code to generate just Exec=floorp --profile ...
, that should work on any platform that supports $PATH or equivalent.
I'm totally unfamiliar with Firefox codebase and I have no idea where to look for the code in question. A few naive greps yielded no results :/ Can you pls maybe point me where to look? Thanks!
from floorp.
@VictorGamerLOL as a workaround, you can update the .desktop
files in ~/.local/share/applications
manually - remove the /usr/bin
prefix from the Exec=
line, that should work
from floorp.
@jficz Thank you for your research and as you said, using just floorp
is a good idea. But recently we changed the code to dynamically find the location of the binary and not hardcode it to /usr/bin/floorp
for example. We changed it to use the command that I had requested you to run that day:
Services.dirsvc.get("XREExeF",Ci.nsIFile).path
But even that has its issues because you said the binary location changes with each update. Anyways, let's wait till the next version and we'll consider using floorp
. But the issue with using just floorp
is, if someone has an alias or something it wouldn't work... Linking directly to the location of the binary is the safer route...
from floorp.
if someone has an alias or something it wouldn't work...
Interesting thought. Aliases are usually shell-specific and I'm not sure how or even if they will be evaluated in the process of executing the .destop file by whatever means the DE does.
Maybe I misunderstand what you mean, I tried this little experiment:
~/.local/share/applications $❯ alias floorp="echo nope"
~/.local/share/applications $❯ floorp
nope
~/.local/share/applications $❯ grep Exec floorp-PWAmp\ music\ player-\{82398e3f-a1d9-4453-bd4d-7da9b353fae9\}.desktop
Exec=floorp --profile <...>
~/.local/share/applications $❯ gio launch floorp-PWAmp\ music\ player-\{82398e3f-a1d9-4453-bd4d-7da9b353fae9\}.desktop
<...works...>
edit: made the example slightly more expressive
from floorp.
Related Issues (20)
- [Bug]: "ブックマークを折りたたむ"設定を有効にした状態でDevToolsのタブ切り替えが出来ない HOT 1
- [Bug]: Visual artifacts on the vertical tabbar HOT 5
- [Bug]: Very slow startup (10 sec..!) on Windows 11 HOT 1
- [Bug]: 広告ショートカットが Firefox 由来のものになっている HOT 1
- [Bug]: touchpad scroll on gnome is way sensitive than other browsers HOT 1
- [Bug]: About Dialog の内容が Floorp に最適化されていない可能性がある HOT 5
- [Bug]: HOT 7
- [Bug]: Major performance issue while loading new pages HOT 35
- [Bug]: 特定のウェブサイトをウェブパネルに登録するとアイコンが表示されずボタンの縦幅が小さくなる HOT 1
- [Bug]: Load Windy.com cause high CPU temperature HOT 5
- [Bug]: Youtubeの配信を観るとオンタイムにならない HOT 1
- [Bug]: Second tab is misaligned when a tab is pinned in vertical tabs HOT 2
- [Bug]: wrong color/accent maximize-restore down HOT 3
- [Bug]: Floorp Updates says "Updates disabled by your organization"
- [Bug]: Windows Fluerial UI has no area to grab the window in windowed mode while tab bar is filled. HOT 2
- [Bug]: No Format button on leetcode.com
- [Bug]:Customize toolbar browser goes transparent. HOT 5
- [Bug]: Shortcuts Edit window hides behind the Shortcut Icons HOT 2
- [Bug]: Opening and closing tabs causes long browser freezes. HOT 2
- [Bug]: Exiting from fullscreen IFrame removes widgets from navbar HOT 3
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 floorp.