Today's standard feature that Opera is missing is support for relative paths on the command-line.
Given files and their locations:
"%SystemDrive%\file.html"
"%ProgramFiles(x86)%\Opera\test\file.html"
"%ProgramFiles(x86)%\Opera\file.html"
Example 1:
cd "%ProgramFiles(x86)%\Opera"
opera "test\file.html"
Example 2:
cd "%ProgramFiles(x86)%\Opera"
opera "..\..\file.html"
Example 3:
cd "%ProgramFiles(x86)%\Opera"
opera "file.html"
Those will fail in Opera. Passing relative paths to Firefox and Safari works fine. This does fail in Chrome though, but there's a bug for it. It also fails in IE.
This should just work (for any program that accepts local paths) and it's a shame that Opera never implemented this. It's crazy that even example 3 doesn't work. I was going to file on this years ago, but someone beat me to it way before that with bug DSK-138956. Hope this one gets fixed and hope it gets fixed in Chrome too.
What would be the Unix standard equivalent? :sherlock:.I don’t understand those commands since it appears that the primary command you’re using is a ‘change directory’ command. :left:.If you want to open a file with a specific app from the command line, the standard way would be to type the app’s launch command followed by a space and the file path. :left:
Originally posted by qlue:What would be the Unix standard equivalent?Here’s an example:
cd /usr/lib/opera
sudo mkdir test
cd test
sudo touch zipzambam.html
sudo vi zipzambam.html (add some text to the file)
cd ..
opera “test/zipzambam.html”
, which works fine.Or, with “test.html” on your desktop:
opera ../../../home/username/Desktop/test.html
, which also works fine. It’s just Windows Opera at least that has the problem.
cd /usr/lib/opera
sudo mkdir test
cd test
sudo touch zipzambam.html
sudo vi zipzambam.html (add some text to the file)
Strange place to be messing with user files but I get what you mean. :p.I’d have used { sudo gedit /usr/lib/opera/zipzambam.html } instead! :up:.One command taking the place of five! :left:.