Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start menu entries #9

Open
nyxnor opened this issue Mar 1, 2022 · 3 comments
Open

start menu entries #9

nyxnor opened this issue Mar 1, 2022 · 3 comments

Comments

@nyxnor
Copy link
Owner

nyxnor commented Mar 1, 2022

nyxnor/tor-ctrl#20

/usr/share/applications/vitor.desktop

[Desktop Entry]
Type=Application
Exec=sh -c 'vitor;sleep 5'
Terminal=true
Name=Vitor - Edit tor configuration files (torrc)
GenericName=Vitor - Edit tor configuration files (torrc)
Comment=Vitor - Edit tor configuration files (torrc)
Categories=System
Icon=/usr/share/icons/anon-icon-pack/nyx.ico ## update icon
Keywords=system;tor;torrc;vitor;vi;

Need to update the icon but I don't have one

Benefit:

  • No need to use terminal wrapper
  • No need to use shortcuts that just refer to the command then sleep
  • Sleep just some seconds and the window will be closed automatically.
@nyxnor
Copy link
Owner Author

nyxnor commented Mar 1, 2022

Qubes-Whonix:

/home/user/.local/share/applications/org.qubes-os.vm.sys-whonix.vitor.desktop

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
X-Qubes-VmName=sys-whonix
X-Qubes-AppName=vitor
Icon=/home/user/.local/share/qubes-appmenus/sys-whonix/apps.icons/gateway-torrc.png
Name=sys-whonix: Vitor - edit safely Tor User Config
GenericName=sys-whonix: Vitor
Comment=Edit safely /usr/local/etc/torrc.d/50_user.conf configuration file in editor
Categories=System;X-Qubes-VM;
Exec=qvm-run -q -a --service -- sys-whonix qubes.StartApp+vitor
X-Qubes-DispvmExec=qvm-run -q -a --service --dispvm=sys-whonix -- qubes.StartApp+vitor

@adrelanos
Copy link

/home/user/.local/share/applications/org.qubes-os.vm.sys-whonix.vitor.desktop

This would hopefully be auto generated by Qubes.
As long as non-Qubes desktop files are functional, Qubes should be able to pick it up from there. Otherwise that would be a Qubes bug.

@adrelanos
Copy link

Exec=sh -c 'vitor;sleep 5'

Suggested change:

Exec=sh -c 'vitor;sleep infinity'

As per: nyxnor/tor-ctrl#20 (comment)


Qubes-Whonix:

/home/user/.local/share/applications/org.qubes-os.vm.sys-whonix.vitor.desktop

In other words, please do not manually create such a file.


From original post in this ticket:

/usr/share/applications/vitor.desktop

Could you please commit to this git repository?

Even without icon, better than nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants