Skip to content

Commit da59f1f

Browse files
committed
Support Lumina. Release 1.0.0
1 parent 6350dce commit da59f1f

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ venv
33
dist
44
*.egg-info/
55
__pycache__/
6-
man/
6+
man/
7+
runvenv.ps1

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog for Show in File Manager
22
==================================
33

4+
1.0.0 (2021-10-04)
5+
------------------
6+
- Support [Lumina](https://lumina-desktop.org/)
7+
48
0.9.0 (2021-09-08)
59
------------------
610
- Add option to specify file manager to use from command line

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Although this package provides several functions to assist in identifying the th
2020
circumstances you need to call only one function, the function `show_in_file_manager`, and it should just work.
2121

2222
This package aspires to be platform independent, but it currently supports only Windows 10/11, Linux, WSL, and macOS. It
23-
works with 18 [supported file managers](#supported-file-managers).
23+
works with 19 [supported file managers](#supported-file-managers).
2424

2525

2626
## Install and run
@@ -104,6 +104,7 @@ like `file:///home/user/file.txt` in addition to regular paths like `/home/user/
104104
|[Krusader](https://krusader.org/)|KDE|`krusader URI`|❌|⚠|A double panel file manager accepting one URI. Two URIs can be specified using `--left` and `--right`, but that is unsupported by this package. Specifying a file causes an error.|
105105
|[SpaceFM](https://ignorantguru.github.io/spacefm/)|Linux|`spacefm URI1 URI2`|❌|✅|Specifying a file opens it.|
106106
|[fman](https://fman.io/)|Windows, Linux, macOS|`fman path1 path2`|✅|⚠|A double panel file manager accepting up to two paths. Cannot select folders. Does not accept URIs.|
107+
|[Insight](https://github.com/lumina-desktop/lumina/tree/master/src-qt5/desktop-utils/lumina-fm)|Lumina Desktop|`lumina-fm path1 path2`|❌|✅|Specifying a file displays it in the left pane as if it were a folder. Does not accept URIs.|
107108

108109

109110
## Usage

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = show-in-file-manager
3-
version = 0.9.0
3+
version = 1.0.0
44
author = Damon Lynch
55
author_email = damonlynch@gmail.com
66
description = Open the system file manager and select files in it
@@ -19,7 +19,7 @@ classifiers =
1919
Operating System :: MacOS :: MacOS X
2020
Operating System :: Microsoft :: Windows :: Windows 10
2121
Operating System :: POSIX :: Linux
22-
Development Status :: 4 - Beta
22+
Development Status :: 5 - Production/Stable
2323
Topic :: Desktop Environment :: File Managers
2424
[options]
2525
package_dir =

src/showinfm/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ class Platform(Enum):
2222

2323

2424
single_file_only = ('explorer.exe', 'pcmanfm', 'open', 'cutefish-filemanager')
25-
cannot_open_uris = ('fman', 'fman.exe')
25+
cannot_open_uris = ('fman', 'fman.exe', 'lumina-fm')

src/showinfm/system/linux.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ class LinuxDesktop(Enum):
242242
wsl = 16
243243
wsl2 = 17
244244
cutefish = 18
245-
unknown = 19
245+
lumina = 19
246+
unknown = 20
246247

247248

248249
LinuxDesktopFamily = dict(
@@ -268,6 +269,7 @@ class LinuxDesktop(Enum):
268269
wsl='explorer.exe',
269270
wsl2='explorer.exe',
270271
cutefish='cutefish-filemanager',
272+
lumina='lumina-fm'
271273
)
272274

273275

@@ -289,6 +291,7 @@ class LinuxDesktop(Enum):
289291
LinuxFileManagerBehavior['dde-file-manager'] = FileManagerType.show_item
290292
LinuxFileManagerBehavior['io.elementary.files'] = FileManagerType.regular
291293
LinuxFileManagerBehavior['cutefish-filemanager'] = FileManagerType.dir_only_uri
294+
LinuxFileManagerBehavior['lumina-fm'] = FileManagerType.dir_only_uri
292295

293296

294297
def wsl_version() -> Optional[LinuxDesktop]:

0 commit comments

Comments
 (0)