Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

how to set homepage with a command line (so I can push per user in Jamf)

  • 2 trả lời
  • 1 gặp vấn đề này
  • 262 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

I'm looking for command line syntax for Mac OS so I can set the homepage

I'm looking for command line syntax for Mac OS so I can set the homepage

Giải pháp được chọn

You can use the mozilla.cfg file in the Firefox program folder to initialize (set/lock) preferences and run privileged JavaScript code.

The mozilla.cfg file needs to be in the main Firefox program folder. For Mac you need to look further down in this article under "Changes Over Time".

These functions can be used in mozilla.cfg:

defaultPref();	// set new default value, requires special data: format for localized prefs
pref();	// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

This requires a local-settings.js file in the "defaults/pref" folder where the channel-prefs.js file is located that specifies to use mozilla.cfg.

//
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

The mozilla.cfg and local-settings.js files need to start with a comment line (//).

The pref to set the home page is a complex pref that can be localized (read from a file) and needs a special syntax to set a default value using a data URI. This is only required with a defaultPref() call.

See Configuration:

See also:

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (2)

more options

Hi, just trying looking around at what others are doing. Not finding anything myself. All so far point to issues with MAC OS

CCK2 to package up a new version of Firefox https://tinyurl.com/y9pq8k65 from : https://www.jamf.com/jamf-nation

Not sure if the above is a option but might be easier to push out a build.

more options

Giải pháp được chọn

You can use the mozilla.cfg file in the Firefox program folder to initialize (set/lock) preferences and run privileged JavaScript code.

The mozilla.cfg file needs to be in the main Firefox program folder. For Mac you need to look further down in this article under "Changes Over Time".

These functions can be used in mozilla.cfg:

defaultPref();	// set new default value, requires special data: format for localized prefs
pref();	// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

This requires a local-settings.js file in the "defaults/pref" folder where the channel-prefs.js file is located that specifies to use mozilla.cfg.

//
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

The mozilla.cfg and local-settings.js files need to start with a comment line (//).

The pref to set the home page is a complex pref that can be localized (read from a file) and needs a special syntax to set a default value using a data URI. This is only required with a defaultPref() call.

See Configuration:

See also: