Vivaldi vs symbolic links
On windows I am using hard link to custom.css and other files for modding vivaldi. Thereby all my mods are located in a separate safe directory. Any changes store in both directories - my mods dir & vivaldi app dir. So after vivaldi update I can easily restore actual version of my mods in vivaldi dir.
Now I trying to setting up Vivaldi on Linux. The app and my home directories located on different partitions. So I can use only symbolic links. It turned out that vivaldi cant read simblolic link to custom.css in any OS(win/Linux). How I can fix that? All other apps can work with this links.
$ ls -l /home/hxss/docs/vivaldi-custom/custom.css -rw-r--r-- 1 hxss hxss 2265 Sep 21 17:31 /home/hxss/docs/vivaldi-custom/custom.css
$ head -n 3 /home/hxss/docs/vivaldi-custom/custom.css /* asdasd */
$ ls -l /opt/vivaldi/resources/vivaldi/style/custom.css lrwxrwxrwx 1 root root 41 Sep 21 16:17 /opt/vivaldi/resources/vivaldi/style/custom.css -> /home/hxss/docs/vivaldi-custom/custom.css
$ head -n 3 /opt/vivaldi/resources/vivaldi/style/custom.css /* asdasd */
This make me wonder too. Why can't read from symlink? Is it Chromium restriction or just Vivaldi. Exclude the fact Vivaldi can't read custom CSS/JS mod from external places currently. Don't know if this really about Chromium, I never have enough incentive to do much things to it.
I test/done like yours sometime ago with no success.
Btw, custom files placed in Vivaldi installation folder/subfolders won't be deleted as long you aren't delete the folder. In Linux, any installation or config folder with custom file never deleted. Same with any other OS actually.
Unrelated, why is that
head -n ..sample in your op. What you use that for?
It just print the 1st few line to terminal/console as far I could tell.
What we really need is a batch script to automate patching mods into Vivaldi on Linux. I have asked around, but nobody is willing to do this currently.
@luetage I wrote a script to do this for windows, but I wrote it in python. So it might be possible to adapt by changing the install directories. I'll take a look and see if it is possible.
we really need is a batch script to automate patching mods into Vivaldi on Linux. I have asked around, but nobody is willing to do this currently.
Tell me what is needed and i will try a bash script for the Tuxian Vivaldis.
In which thread is the Windows Batch file?
We discussed this here: https://forum.vivaldi.net/topic/20571/calling-all-vivaldi-modders-1-minute-task/4
I also wrote a request in the linux forum: https://forum.vivaldi.net/topic/20985/help-needed-creating-a-batch-script -- links to both the windows and osx version can be found there.
Would be great if we could get this up as a separate thread, just like the windows and osx version. The minimum that is needed imo is automating adding the needed lines to browser.html and adding the custom files to the application automatically.
why is that head -n
This is just a sample to show that symlink is correct and work.
What we really need
What we really need is a Vivaldi native support of mods without symlinks or scripts
For me script is too much. I can create symlink once on update. But exactly symlink, not copy - it usefull on modding.
I more opt in to read user configs in user profile folder or any user owned folder after system wide configs. Patching installation place/folder to add some user configs is silly.
Of course, already requested.
I more opt in to read user configs in user profile folder or any user owned folder after system wide configs.
I had reported for Linux a related feature to bugtracker for a user-defined config file in 2015. SOme Linux distributions had this for Cromium.
Feature: VB-5294 "Reading commandline parameters from user config file or environment variable"
Your /opt/vivaldi/resources/vivaldi/style/custom.css isn't touched when upgrading so all you need do is re-add the association in the /opt/vivaldi/resources/vivaldi/style/common.css
which can be done with a command after an upgrade.
sudo sed -i '1s/^/@import "custom.css";/' /opt/vivaldi/resources/vivaldi/style/common.css
Adjust paths if using vivaldi-snapshot.
Look in https://forum.vivaldi.net/topic/21417/linux-bash-script-adding-the-modding-patch-to-vivaldi-installations/ to use a script to update your browser.html.