this post was submitted on 06 Sep 2023
0 points (NaN% liked)

Startpages

2 readers
1 users here now

For the viewing, sharing, and discussion of custom browser startpages

founded 1 year ago
 

I had a custom new tab page working in Firefox on Arch Linux before I had to reformat due to various reasons and wanted to start new since I was changing my workflow from minimal no DE, no display manager, bspwm to Plasma 5 and SDDM etc.

My custom start page used to work for both new window and new tab, but I must have missed writing down a step because on this try, it's only working for new tab and not new window.

Original post was on Reddit, but since the sub went private, I can't access it.

you are viewing a single comment's thread
view the rest of the comments
[–] wasym@kbin.social 1 points 1 year ago (2 children)

i tried this but everytime i restart the browser it says "Failed to read the configuration file. Please contact your system administrator."
any clue whats causing this?

[–] smoof@kbin.social 1 points 1 year ago* (last edited 1 year ago) (1 children)

So I guess I did copy the updated version. It works on new tab, but not new window though. I guess I remembered wrong that it worked on new window, too.

New autoconfig.cfg:

// This comment is required.
var {classes:Cc,interfaces:Ci,utils:Cu} = Components;

/* set new tab page */
try {
  Cu.import("resource:///modules/AboutNewTab.jsm");
  var newTabURL = "file:///home/***/.startpage/index.html";
  AboutNewTab.newTabURL = newTabURL;
} catch(e){Cu.reportError(e);} // report errors in the Browser Console

I'm on Arch Linux, so the folder for the files are in /usr/lib/firefox/autoconfig.cfg and /usr/lib/firefox/defaults/pref/autoconfig.js.

[–] wasym@kbin.social 1 points 1 year ago

this one works!
thanks guys =)

[–] jwr1@kbin.social 1 points 1 year ago

I've never actually tried to do this, so I don't know. The original support forum was from 4 years ago, so maybe it doesn't work for newer versions?