Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
Adds the --allusers command line option that allows FUSE to mount the
Browse files Browse the repository at this point in the history
filesystem such that all users on the system can access the files.
  • Loading branch information
EnigmaCurry committed May 9, 2013
1 parent 3a99270 commit 5f085b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gmusicfs/gmusicfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ def main():
parser.add_argument('-t', '--truefilesize', help='Report true filesizes'
' (slower directory reads)',
action='store_true', dest='true_file_size')
parser.add_argument('--allusers', help='Allow all system users access to files'
' (Requires user_allow_other set in /etc/fuse.conf)',
action='store_true', dest='allusers')
args = parser.parse_args()

mountpoint = os.path.abspath(args.mountpoint)
Expand All @@ -337,7 +340,7 @@ def main():

fuse = FUSE(GMusicFS(mountpoint, true_file_size=args.true_file_size),
mountpoint, foreground=args.foreground,
ro=True, nothreads=True)
ro=True, nothreads=True, allow_other=args.allusers)

if __name__ == '__main__':
main()

0 comments on commit 5f085b5

Please sign in to comment.