graysky2 / profile-sync-daemon

Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers.
https://wiki.archlinux.org/index.php/Profile-sync-daemon
Other
910 stars 88 forks source link

Allow user-defined browsers in $HOME/.config/psd/browsers #271

Closed xervon closed 3 years ago

xervon commented 4 years ago

As @ryanerwin mentioned in #240 I also wanted the ability to add a custom browser or override a default browser configuration within my user config directory.

The current version of the code therefore changes the following:

  1. f no browsers are defined, it defaults to all stock and user browsers
  2. For every defined browser it first checks, if there is a user provided config
    • If there is it sources that
    • Otherwise it loads the default config
Alexander-Shukaev commented 4 years ago

Looking forward as well!

xervon commented 4 years ago

Any chance of this still getting merged with commit ff34411 having been merged @graysky2?

I'd like to keep custom browser definitions in my personal dotfiles and be able to add custom per-user profiles as a normal (non-root) user.

Alexander-Shukaev commented 3 years ago

I guess this one can be closed in favor of fix from #240.

xervon commented 3 years ago

Personally I'd really like to have the ability to define my custom profiles within my home directory where all of the other configuration is done as well.I want to be able to synchronize my custom profiles the same way I do the rest of my personal dotfiles.

Defining user profiles in my home directory also allows any user to add their personal profiles without needing root privileges.

felipec commented 3 years ago

Until this is merged or Brave is in /usr/share/psd/browsers/ I won't consider psd useful to me. I'm not going to modify /usr/share/.

graysky2 commented 3 years ago

@felipec - There isn't much value you sharing your opinion in 3 (counting this one) different closed PRs. Don't use psd if my decision to require users to copy a template to a root owned directory offends you.

https://github.com/graysky2/profile-sync-daemon/issues/233#issuecomment-835872064 https://github.com/graysky2/profile-sync-daemon/pull/240#issuecomment-835872647

xervon commented 3 years ago

For those that have an interest in this feature, my forked version of this is now once again up to date with this repo. @felipec if you're willing to install this from source that might serve your use case.

Xervon/profile-sync-daemon

I for one have been using my fork without any issues pretty much since I've made this pull request.

EDIT: Examples of Brave Browser configurations seem to be available in #240. Assuming Brave Browser hasn't changed their storage layout since those configurations were created, they will work without modifications with my fork as well.

felipec commented 3 years ago

@graysky2:

There isn't much value you sharing your opinion in 3 (counting this one) different closed PRs.

I will decide which of my actions have value. You are free to disagree.

Don't use psd if my decision to require users to copy a template to a root owned directory offends you.

It doesn't offend me to do wrong things. But they are still wrong.

And yeah, I won't use your psd.

@Xervon:

For those that have an interest in this feature, my forked version of this is now once again up to date with this repo.

Thank you, I created an Arch Linux package of your fork: profile-sync-daemon-user, and it does indeed work fine with my user configuration of the Brave browser.

I sent you a small fix since I found it annoying that find throws an error message if the user browsers directory doesn't exist: Xervon/profile-sync-daemon#1.

felipec commented 3 years ago

@Xervon You should probably rebase the commits on top of @graysky2's master, and use a different branch for the pull request (not master).

xervon commented 3 years ago

and use a different branch for the pull request (not master).

True. I don't believe I can actually change this at this point. Hopefully closing this will prevent the updates being shown here.

Alexander-Shukaev commented 3 years ago

Brave is in contrib already. What's your problem? You can also contribute any browser for everyone to use.

felipec commented 3 years ago

Brave is in contrib already. What's your problem? You can also contribute any browser for everyone to use.

That is useless to me.

Does psd pick browser configurations from contrib?