Comments (6)
On linux we use xdg-open
for show files so if you don't have this it won't work. Do you have xdg-open in your distribution?
from downlords-faf-client.
I do indeed
@archbird:~$ xdg-open --version
xdg-open 1.1.3+
Edit: the zsh prompt gets butchered by github
from downlords-faf-client.
The code for linux is
//Might not work on all linux distros but let's give it a try
if (Files.isRegularFile(path)) {
path = path.getParent();
}
ProcessBuilder builder = new ProcessBuilder("xdg-open", path.toAbsolutePath().toString());
builder.start();
Unfortunately I can't test it since I don't have a linux machine. So this will have to wait until some linux developer can replicate it.
from downlords-faf-client.
You can close this then, I know exactly what the bug is and its not yours.
from downlords-faf-client.
Could you comment here with what it is so others could find it later as well if it affects them.
from downlords-faf-client.
This is a braindead retarded bug that crops up from time to time when you update a python package which is able to open a directory. For some reason, some dev over there (possibly pip) has decided that one of sane the package update steps is to nuke your mimeapps.list and flood your .local/share/applications/ directory with .desktop files that advertise that package as default for the inode/directory type.
On Arch based distros this is shitemare to solve since if you do xdg-mime query default inode/directory it can still show the correct file manager but because the xdg-open priority list is now fucked it prefers the wrong thing.
2 shitty solutions all over the net:
- Dont use shitty python packages
- Have everyone migrate to gvfs-open because fuck most distros and users of non-gnome software.
Alternatively, have fun trying to find what python git/datavis/helper package has shipped these stupid .desktop files because this often cant be fixed by a simple
xdg-mime default org.gnome.Nautilus.desktop inode/directory
Edit: For when someone runs into this and xdg-open and xdg-mime arent happy;
XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default inode/directory
Will give you the list of files xdg-open is considering in what order, in my case,
.local/share/applications/mimeinfo.cache
was the culprit
from downlords-faf-client.
Related Issues (20)
- Access List of friends
- Don't generate 4/5 player maps for 3 player matchmaking HOT 2
- Client Traditional Chinese localizations update request
- Press field in window control buttons is half-clipped when client is maximized.
- Date language mixup HOT 9
- Add persistency to the map selected when creating a game HOT 1
- Bug when deleting managed maps
- Add map version to Manage installed maps dialog HOT 3
- Sometimes ladder search isn't actually searching
- client crash on start
- Please update Traditional Chinese localizations. HOT 2
- There is no way to search for only ladder replays HOT 1
- [Feature]: Remove the 4v4 no-Share rating from the player profile
- [Bug]: always opens #russian chat tab
- [Bug]: Settings window will open multiple times
- [Bug]: All variants of "Setons's Clutch" are set as "Unranked Map" HOT 1
- [Feature]: 6v6 ladder exclusively for GAP HOT 1
- [Feature]: Suggestions for the empty space in the custom games (Game mode & Rated) HOT 4
- Disable reclaim and resource sliders if the respective generator is set to random
- [Bug]: Changing faction while matchmaking is searching resets it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from downlords-faf-client.