doesn't recognise "~/" shortcut for /home/user/

Bug #70585 reported by Alan Rae
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center
Invalid
Undecided
Unassigned
gnome-session
Expired
Wishlist
gnome-session (Ubuntu)
Opinion
Wishlist
Ubuntu Desktop Bugs

Bug Description

I installed the MoinMoin wiki (Desktop Edition) for my personal use. It is written in python, and in the terminal, the command to run it is:

    python ~/moin-desktop/moin.py

However, when entered into the "Additional startup programs", this doesn't work. It does work when rewritten as:

    python /home/user/moin-desktop/moin.py

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug, wishlist to forward upstream by somebody from the bugsquad

Changed in control-center:
assignee: nobody → desktop-bugs
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Changed in control-center:
status: Unconfirmed → Rejected
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in gnome-session:
status: Unknown → Unconfirmed
Revision history for this message
Jonathan Gibert (jokot3) wrote :

This is not a bug, the character ~ is expanded (or not) by the interpreter, when you type "python ~/main-desktop/moin.py" in a shell, it's the shell that replace "~" with /home/user.
You should not rely on it.

Regards,

Revision history for this message
Emil Andersson (emil-jo-andersson) wrote :

It would be great to have gnome-session recognise the ~ character. That way, I could add a .desktop-file in /etc/skel/.config/autostart/ pointing to a standard (but per user customizable) script ~/foo/bar.sh.

A workaround is to launch "xterm -e ~/foo/bar.sh" instead.

Regards,
Emil

Changed in gnome-session:
importance: Unknown → Wishlist
Changed in gnome-session:
status: New → Expired
Changed in gnome-session (Ubuntu):
status: Confirmed → Opinion
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.