Thursday, April 18, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 8247  / 2 Years ago, sun, january 23, 2022, 6:03:44

How to make an application like Gnote or Tomboy ask for a password when launching them from my user account.


More From » gnome-keyring

 Answers
7

You can launch the application with gksudo to start it in super-user mode, e.g. to start Tomboy issue the command gksudo tomboy. You'll be presented with a graphical password prompt and after you enter correct password the application will be started in super-user(root) mode.

However, if you want to change this behaviour in the Application Menu then you have to change the Exec= line of the .desktop file corresponding to the application by adding gksudo after Exec= .i.e. Exec=gksudo tomboy. You can also do it using alacarte or Menu Editor, just find the right application menu-item, go to Properties and edit its Command field and add a gksudo before whatever is there.


[#37511] Monday, January 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
erettor

Total Points: 303
Total Questions: 121
Total Answers: 103

Location: Colombia
Member since Mon, May 2, 2022
2 Years ago
;