Kile won't open files outside the home directory

Bug #1075173 reported by Federico Poloni
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
kile (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After updating from (a fresh installation of) Precise to Quantal, Kile refuses to open any file specified on the command line.

How to reproduce:
$ cd ~
$ mkdir somedir
$ cd somedir
$ touch file.tex
$ kile file.tex

What should happen: Kile opens /home/my_user_name/somedir/file.tex
What happens instead: error message: The file /home/my_user_name/file.tex could not be loaded, as it was not possible to read from it

Package version: 1:2.1.2-0ubuntu1/i386

Federico Poloni (fph)
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kile (Ubuntu):
status: New → Confirmed
Revision history for this message
Federico Poloni (fph) wrote :

Some additional information:
* launching the program with "kile somedir/file.tex" opens the file, whether given from the home directory or from any other one. So does "kile /home/my_user_name/somedir/file.tex". It looks like the only issue is that kile uses $(HOME) as the base path rather than the current working directory for relative path.
* launching the program with tcsh rather than bash gives the same problem.
* okular (one of the only few other kde apps that I have installed, to check if it's a global kde problem rather than a kile-specific one) works as expected.
* opening files through file/open inside the application works as expected.

Revision history for this message
Marcel Martin (marcel) wrote :

The bug seems to have been fixed for more recent kile versions: https://bugs.kde.org/show_bug.cgi?id=301808

Revision history for this message
Joachim Protze (joachim-protze) wrote :

Seems like kile doesn't accept the current shell directory as working dir.

-> starting kate from some directory, file/open shows the current shell dir
-> starting kile from some directory, file/open shows the user's home dir

Revision history for this message
Kostis Leledakis (koleygr) wrote :

May be i am writing in wrong place, but if it helps, in my lubuntu13.04,
when i try to open a file via "open with kile".. it opens an empty file...
if i try to save... it saws the path double like /home/me/Desktop/home/me/Desktop/test.tex.

PS: I am writing here because i think is exactly the same problem, and this is why doesnt find the file
as you said...

Revision history for this message
Kostis Leledakis (koleygr) wrote :

As a reply to my previews comment, i changed the kile.desktop file in /usr/share/applications/kde4
by replacing the line:

Exec=kile %U with the line
Exec=kile %f

This fixed my problem and now i can open files

Revision history for this message
atoyaare (labarre-anthony) wrote :

Thanks, I had the same problem and your fix solved it.

Revision history for this message
Kostis Leledakis (koleygr) wrote :

You are welocome atoyaare...

I suppose the developers can fix the bug very easy
(if it is still a bug)

There is no reason to open url with kile (i think)...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.