-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vlc: program does not start with --started-from-file #836
Comments
In a text editor open /etc/firejail/vlc.profile and comment out (add a #) the lines there one by one and try vlc again. Probably one of the include lines is creating the problem. I think one of the blacklists in one of the files is creating the problem. |
Wasn't the advice to leave that line indeed commented out?
Yep, and for me (v0.9.42), "private-tmp" was the very last line 😅 My exec path for "vlc" is this: "vlc --started-from-file %U" for the vlc.desktop file in ~/.local/share/applications/. Here's a swift guide @netblue30 (and others) might reference on the LM forums (in case you already didn't know): https://forums.linuxmint.com/viewtopic.php?p=1165909#p1165909 |
Is this still an issue? |
Seems to work on my end. Going to close this, but @Amarildojr and @mr-blobbyyy, please feel free to re-open if it's still an issue. |
I am suddenly about to reproduce this
tried reinstalling some parts of VLC tried deleting |
what does |
you just need to delete |
Reopening for now. But I can not reproduce this yet.
|
Same here the OS: Fedora 32 |
Looks like one off you must comment vlc.profile and uncomment line for line to try which is the problematic line. |
Hi @rusty-snake, I can't find the |
Depending on how you installed firejail, but it should be under The easiest way is to copy it to .config/firejail where it will be automatical be loaded by firejail. Example:
After testing you can simple delete .config/firejail/vlc.profile. |
Same here. |
I can play a file when I open it in VLC started with I can play the file with right click->open with->VLC after having added firejail to the VLC application in Debian10/KDE like so: But after something happened - and I don't know what - the file doesn't play anymore with the latter method while the former keeps working. I then get these errors:
The latter error shows multiple times and also shows when using the former (working) method to open the file. Whatever is happening that causes the file to not play anymore might be related to library scanning by the Nuclear music player (the issue is linked above). How to solve this problem? |
Nobody know. I can not reproduce and other users have not found/reported a cause yet. |
I investigated further and the exact same file in one location does played when I select "Open with->VLC media player" and another one in another location didn't play when trying right afterwards. Both files have the same sha512sum and except of the directory-location exactly the same output when entering And now I I've found the cause: it works when navigating to the directory directly but not when navigating to the directory via a symbolic link (pressing and holding ctrl+shift while dragging a folder in KDE or selecting "Link Here" after dragging it somewhere). |
I tried with this and both ways work. Can you give some more detailed introductions to reproduce.
|
These commands work on my machine as well (except for the stared->started typo in the 3rd).
|
|
|
|
|
|
You're right, sorry. If you'd like to I could delete the previous comment and edit the post. It works for me as well. What doesn't work is placing the link on the desktop and then opening the file via this link. I could play audio and video files when the link is placed in Home, but not when it is placed onto the desktop. |
You can use |
The default VLC.profile does not have permissions for the desktop. It seems like the profile for VLC should not blacklist folders as restrictively as it does, and/or make it easy for users to specify which folders contain media files VLC should be able to run via a setup-prompt and/or prompts when trying to open files in other locations (a notification or message-box asking the user to whitelist the directory or file permanently or temporarily) and/or use the target locations for the blacklistings, not the links. For the VLC.profile in specific it might be useful to allow it read-access for all files (in all locations) of specific filetypes. |
vlc.profile allows access to |
0.9.58.2 in Debian10 and I haven't modified (or created) these files. |
unfortunately not possible
Use the one from the backports |
There is a new release planned. @rusty-snake closing or would you prefer to adjust the bug template for symlink and permission stuff? |
Hello,
Today, after many months away from Linux, I decided to give VLC a try here. It all worked fine one month ago.
For some reason, I can't open any file with VLC or start it from KDE's menu, because of the
--started-from-file
part in KDE's launch properties. Output:When removing that part, it starts normally:
Following suggestions in #814 didn't help. I just compiled firejail-git in Arch and uncommenting
private-bin-no-local no
didn't help. I also tried setting it to yes.Commenting the
private-tmp
only helped if I remove the--started-from-file
from the launch properties.EDIT: Removing
--started-from-file
from KDE's launch properties does make VLC start normally and it actually adds that part automatically:Not that editing that command wasn't necessary.
The text was updated successfully, but these errors were encountered: