xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit c1abe08f24cd6620fe85921ebe654e03a958b624

Update vifm-media-osx script for OS X versions
* Use `python3` instead of `python` in shebang.
Apparently, no symlink is set up.
* Change plistlib.{readPlistFromString => loads}()
The script was added in 2019, while readPlistFromString() was
deprecated since Python 3.4 (2014) and got removed in Python
3.9 (2020).

Thanks to vulpes-vulpeos.

Closes #1098 on GitHub.
Author: xaizek
Author date (UTC): 2025-07-23 18:06
Committer name: xaizek
Committer date (UTC): 2025-07-23 18:10
Parent(s): 16b75195e91f996bfb6432a50cf0ad931255af61
Signing key: 99DC5E4DB05F6BE2
Tree: 36663a42b896d45e95d6e2e91ad8ce31b964af4a
File Lines added Lines deleted
ChangeLog 3 0
THANKS 1 0
data/vifm-media-osx 2 2
File ChangeLog changed (mode: 100644) (index 86b6bfd37..0b332d6ba)
136 136 Fixed printing newline on cancelling choosing a directory via Fixed printing newline on cancelling choosing a directory via
137 137 `--choose-dir` option. Thanks to The Cyberduck. `--choose-dir` option. Thanks to The Cyberduck.
138 138
139 Fixed vifm-media-osx script for modern versions of OS X. Thanks to
140 vulpes-vulpeos.
141
139 142 0.14-beta to 0.14 (2025-02-08) 0.14-beta to 0.14 (2025-02-08)
140 143
141 144 Improved documentation on zh/zl menu keys a bit. Improved documentation on zh/zl menu keys a bit.
File THANKS changed (mode: 100644) (index 7fdd5e7f6..354b575c7)
... ... Vlad Glagolev (Stealth)
356 356 vodbyte vodbyte
357 357 Von Welch Von Welch
358 358 vuenn vuenn
359 vulpes-vulpeos
359 360 vzel vzel
360 361 willemw12 willemw12
361 362 Xirui Zhao (xiruizhao) Xirui Zhao (xiruizhao)
File data/vifm-media-osx changed (mode: 100755) (index 90b499f33..4727d8710)
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 2 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
3 3 """vifm mediaprg for Mac OSX""" """vifm mediaprg for Mac OSX"""
4 4
 
... ... def list(args):
46 46 except subprocess.CalledProcessError: except subprocess.CalledProcessError:
47 47 print("Failed to execute '{}'".format(DISKUTIL), file=sys.stderr) print("Failed to execute '{}'".format(DISKUTIL), file=sys.stderr)
48 48 return(1) return(1)
49 root = plistlib.readPlistFromString(output)
49 root = plistlib.loads(output)
50 50 for disk in root["AllDisksAndPartitions"]: for disk in root["AllDisksAndPartitions"]:
51 51 # By experimentation, these seem to be root and other uninteresting # By experimentation, these seem to be root and other uninteresting
52 52 # disks # disks
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master