DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th January 2020
d31n1 d31n1 is offline
Port Guard
 
Join Date: Jan 2020
Posts: 14
Default How do I make unveil access any folder I want when using Firefox?

First time poster. Forgive me if this is posted in the wrong place.

I am using OpenBSD -current and I am having some issues with unveil and Firefox.

As you know unveil by default only gives Firefox access to ~/Downloads, but I want to be able to download into other folders. I have managed to give Firefox access to ~/Pictures, ~/Documents and ~/Videos by adding
~/Pictures rwc
~/Documents rwc
~/Videos rwc
to /usr/lib/firefox/browser/defaults/preferences/unveil.main, but I can't seem to give access to any other folder in my home folder, such as ~/Dropbox.

I am quite the noob at openbsd and forgive me if this is explained in the unveil man.

Last edited by J65nko; 13th January 2020 at 07:37 AM. Reason: unvail -> unveil ;-)
Reply With Quote
  #2   (View Single Post)  
Old 11th January 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Hello, and welcome!

/usr/local/share/doc/pkg-readmes/firefox recommends not changing the files in /usr/local/, instead making local copies in /etc and editing them there. Otherwise, you will need to revise the files each time you update the package.
Quote:
Files containing pledge promises and unveil paths and permissions for each type of process are located in /usr/local/lib/firefox/browser/defaults/preferences/. Each file can be overridden by copying it to /etc/firefox/ and modifying it.
There are two recent forum threads that discuss this subject, which might help. One. Two.
Reply With Quote
  #3   (View Single Post)  
Old 12th January 2020
d31n1 d31n1 is offline
Port Guard
 
Join Date: Jan 2020
Posts: 14
Default

Thanks for the warm welcome!

I now copied the files from /usr/local/lib/firefox/browser/defaults/preferences/ to /etc/firefox/ and the problem still persist only this time there is some problem with the fonts (picture attached)

One other problem I have with unveil is with making transmission-gtk open magnet links. Adding /usr/local/bin/transmission-gtk rx to unveil.main works, but it opens a new instance of transmission every time even if transmission is already running.

Again, noob at openbsd, so please bare with me

EDIT: apparently transmission-gtk also have the same font issues now.
I recently did sysupgrade -s then pkg_add -u after booting. Something must have gone wrong....
EDIT 2: did a reboot and the fonts are back to normal
Attached Images
File Type: png 2020-01-12-032115_1280x800_scrot.png (52.0 KB, 108 views)

Last edited by d31n1; 12th January 2020 at 02:48 AM.
Reply With Quote
  #4   (View Single Post)  
Old 12th January 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

GTK version 3 on OpenBSD uses unveil(2). To my understanding Qt version 5 does not. You might try transmission--qt to see if it the Qt flavor works better for you than transmission--gtk.
Reply With Quote
Reply

Tags
current, firefox, openbsd, unveil

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
chrome +unveil possible to change download folder? billy_bazooka OpenBSD Packages and Ports 2 17th October 2019 02:58 PM
how to Create md5 checksums in every folder of directory tree Lybin OpenBSD General 1 8th May 2016 03:23 PM
dump cores in custom folder ? hert OpenBSD General 1 3rd April 2013 03:39 AM
Set password for Folder mfaridi FreeBSD Security 6 5th September 2008 10:49 PM
How to change folder icons for ROX rex FreeBSD General 0 12th May 2008 12:14 AM


All times are GMT. The time now is 10:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick