The presence of ~/.linopenrc seems to cause xdg-open to fail in certain situations. Specifying with -c either /etc/linopen.conf or ~/.linopenrc works. I remedied this by changing line 17 to:
[[ -f "$_LINOPEN_CFGRC" ]] && { egrep -v "^(#|$)" "$_LINOPEN_CFGRC"; return; }
It seems to fail, if /etc/linopen.conf exists looking at the scripts logic.
I'll push a fix for this when I'm off from work. Thanks!
[[ -f "$_LINOPEN_CFGRC" ]] && { egrep -v "^(#|$)" "$_LINOPEN_CFGRC"; return; }
But why is it still opened with File Roller (see screenshot)?
Because linopen does not work that way. It does not integrate with gnome or gnome-open stuff.
It's replacement for xdg-open, without all the weird mime files and .desktop stuff.
To use the linopen in your filemanager, you would need to have .desktop file that calls 'xdg-open %f' and it would choose the program to open it according to how linopen is configured.
If you use DE integration, I would recommend to set up things their way. I'm sure nautilus allows you to configure .pez files to open in prezi-desktop.
]]>[orschiro@thinkpad ~]$ pacman -Q linopen
linopen 1.4-2
Sorry, I was incorrect about the config. It is .linopenrc. I left the default one in /etc untouched.
EDIT:
The output is the same:
[orschiro@thinkpad ~]$ open -c .linopenrc testfile.pez
rule must exist in configuration: 'default:'
But why is it still opened with File Roller (see screenshot)?
]]>Hello I have a file with the extension .pez which I would like to open with prezi-desktop.
Seems to work fine here.
Can you post your `pacman -Q linopen` and is that your full config?
linopen.conf requires default rule as fallback.
This should be the output with your config:
─┬╼ .loli//LOLI :: /home/loli
└╼ ] open -c asd.conf asd.pez
rule must exist in configuration: 'default:'
Thus, my linopen.conf
#
# linopen configuration
# enviroiment variables can be used
#
.pez:prezi-desktop
However, they are still opened with File Roller. Did I make something wrong?
Robert
]]>Feature request: I want to open video files in mplayer, but audio files as well. For audio files, I want mplayer to start in a terminal, for video files I don't. As far as I can see this isn't possible right now. If it is, please give me a heads up.
Good suggestion, I've added it to git now.
You can specify interm explictly for rule by appending '->interm' after program name. I also added output redirection for backgrouned applications to /dev/null.
In this case it would be better to change the PKGBUILD to this
Done
You've also got me thinking that I should add a 'run in terminal' option to my own opener, expro (reported earlier in the forum).
As a tip, it might be possible to do automatic detection whether the program needs terminal at all, by checking what it is linked against with ldd. However it's not accurate. Especially if the program dynamically loads something. Best way I can think of is just defining manually on configuration, as the user knows the best.
]]>Inspired by Taylorchu's mimi, I decided to make xdg-open replacement ... and linopen knows when the process should be opened in new terminal or in your current open terminal.
Love it when one program inspires another, especially if it improves upon it!
You've also got me thinking that I should add a 'run in terminal' option to my own opener, expro (reported earlier in the forum).
There is quite a collection of openers now - maybe they deserve a Wiki page in their own right (although mimeo is mentioned on the xdg-open page).