Sorry for the tags. I don't know whih one applies. Please remove not pertaining ones, then delete this line. Or comment, and I'll do it myself.
I want to put a link to a file located in
/home/myname/some/path/file.tex on my desktop. This TeX file calls other TeX files inside it. Now, when I open the link, which is located on the desktop, my TeX editor, it says I opened the file
/home/myname/Desktop/file.tex. I can't compile this file, because the other TeX files the main TeX file relies upon are not located where the program expects them.
How can I make a link file open the target file in its actual location instead of on the desktop?
The solution advertised here does not work as intended. With
#!/bin/bash exec /home/myname/some/path/file.tex "$@"
/tmp/geany_run_script_JVX1HZ.sh: 7: /tmp/geany_run_script_JVX1HZ.sh: ./open-file.sh: Permission denied —---------------- (program exited with code: 126) Press return to continue
open-file.sh is the wrapper script located on my desktop.
Although, if I open a terminal and do
chmod a+x ./open-file.sh
texstudio, which incidentally is the program I use to open
.tex files, then I can open a terminal and do
it will launch TeXStudio with the desired file loaded in the desired target location. I still can't just double-click open-file.sh on my desktop, since that will open my text editor, letting me edit the bash script. I want to double-click the
open-file.sh script file and have TeXStudio open up my
### EDIT 3
From this question, I deduct that I have done everything right and the file should be clickable and be executed upon clicking. Unfortunately, it doesn't. I think my permissions are correct, afaik
and same here
-rwxr-xr-x me me 94 Apr 27 12:00 open-file